1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.61. |
3 | # Generated by GNU Autoconf 2.71. |
4 | # |
4 | # |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5 | # |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
|
|
7 | # Inc. |
|
|
8 | # |
|
|
9 | # |
7 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
9 | ## --------------------- ## |
12 | ## -------------------- ## |
10 | ## M4sh Initialization. ## |
13 | ## M4sh Initialization. ## |
11 | ## --------------------- ## |
14 | ## -------------------- ## |
12 | |
15 | |
13 | # Be more Bourne compatible |
16 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
16 | emulate sh |
21 | emulate sh |
17 | NULLCMD=: |
22 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
24 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
25 | alias -g '${1+"$@"}'='"$@"' |
21 | setopt NO_GLOB_SUBST |
26 | setopt NO_GLOB_SUBST |
22 | else |
27 | else $as_nop |
23 | case `(set -o) 2>/dev/null` in |
28 | case `(set -o) 2>/dev/null` in #( |
24 | *posix*) set -o posix ;; |
29 | *posix*) : |
|
|
30 | set -o posix ;; #( |
|
|
31 | *) : |
|
|
32 | ;; |
25 | esac |
33 | esac |
26 | |
|
|
27 | fi |
34 | fi |
28 | |
35 | |
29 | |
36 | |
30 | |
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
31 | |
40 | |
32 | # PATH needs CR |
|
|
33 | # Avoid depending upon Character Ranges. |
|
|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
37 | as_cr_digits='0123456789' |
|
|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
39 | |
|
|
40 | # The user is always right. |
|
|
41 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
42 | echo "#! /bin/sh" >conf$$.sh |
|
|
43 | echo "exit 0" >>conf$$.sh |
|
|
44 | chmod +x conf$$.sh |
|
|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
46 | PATH_SEPARATOR=';' |
|
|
47 | else |
|
|
48 | PATH_SEPARATOR=: |
|
|
49 | fi |
|
|
50 | rm -f conf$$.sh |
|
|
51 | fi |
|
|
52 | |
|
|
53 | # Support unset when possible. |
|
|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
55 | as_unset=unset |
|
|
56 | else |
|
|
57 | as_unset=false |
|
|
58 | fi |
|
|
59 | |
|
|
60 | |
|
|
61 | # IFS |
|
|
62 | # We need space, tab and new line, in precisely that order. Quoting is |
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
63 | # there to prevent editors from complaining about space-tab. |
44 | # Quoting is to prevent editors from complaining about space-tab. |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
65 | # splitting by setting IFS to empty value.) |
|
|
66 | as_nl=' |
45 | as_nl=' |
67 | ' |
46 | ' |
|
|
47 | export as_nl |
68 | IFS=" "" $as_nl" |
48 | IFS=" "" $as_nl" |
69 | |
49 | |
|
|
50 | PS1='$ ' |
|
|
51 | PS2='> ' |
|
|
52 | PS4='+ ' |
|
|
53 | |
|
|
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
55 | LC_ALL=C |
|
|
56 | export LC_ALL |
|
|
57 | LANGUAGE=C |
|
|
58 | export LANGUAGE |
|
|
59 | |
|
|
60 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
61 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
63 | # also avoids known problems related to "unset" and subshell syntax |
|
|
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
66 | do eval test \${$as_var+y} \ |
|
|
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
68 | done |
|
|
69 | |
|
|
70 | # Ensure that fds 0, 1, and 2 are open. |
|
|
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
74 | |
|
|
75 | # The user is always right. |
|
|
76 | if ${PATH_SEPARATOR+false} :; then |
|
|
77 | PATH_SEPARATOR=: |
|
|
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
80 | PATH_SEPARATOR=';' |
|
|
81 | } |
|
|
82 | fi |
|
|
83 | |
|
|
84 | |
70 | # Find who we are. Look in the path if we contain no directory separator. |
85 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
86 | as_myself= |
71 | case $0 in |
87 | case $0 in #(( |
72 | *[\\/]* ) as_myself=$0 ;; |
88 | *[\\/]* ) as_myself=$0 ;; |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
74 | for as_dir in $PATH |
90 | for as_dir in $PATH |
75 | do |
91 | do |
76 | IFS=$as_save_IFS |
92 | IFS=$as_save_IFS |
77 | test -z "$as_dir" && as_dir=. |
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
79 | done |
99 | done |
80 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
81 | |
101 | |
82 | ;; |
102 | ;; |
83 | esac |
103 | esac |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
85 | # in which case we are not to be found in the path. |
105 | # in which case we are not to be found in the path. |
86 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
87 | as_myself=$0 |
107 | as_myself=$0 |
88 | fi |
108 | fi |
89 | if test ! -f "$as_myself"; then |
109 | if test ! -f "$as_myself"; then |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
91 | { (exit 1); exit 1; } |
111 | exit 1 |
92 | fi |
112 | fi |
93 | |
113 | |
94 | # Work around bugs in pre-3.0 UWIN ksh. |
114 | |
95 | for as_var in ENV MAIL MAILPATH |
115 | # Use a proper internal environment variable to ensure we don't fall |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
116 | # into an infinite loop, continuously re-executing ourselves. |
|
|
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
|
118 | _as_can_reexec=no; export _as_can_reexec; |
|
|
119 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
120 | # neutralization value for shells without unset; and this also |
|
|
121 | # works around shells that cannot unset nonexistent variables. |
|
|
122 | # Preserve -v and -x to the replacement shell. |
|
|
123 | BASH_ENV=/dev/null |
|
|
124 | ENV=/dev/null |
|
|
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
126 | case $- in # (((( |
|
|
127 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
128 | *v* ) as_opts=-v ;; |
|
|
129 | *x* ) as_opts=-x ;; |
|
|
130 | * ) as_opts= ;; |
|
|
131 | esac |
|
|
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
133 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
134 | # out after a failed `exec'. |
|
|
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
136 | exit 255 |
|
|
137 | fi |
|
|
138 | # We don't want this to propagate to other subprocesses. |
|
|
139 | { _as_can_reexec=; unset _as_can_reexec;} |
|
|
140 | if test "x$CONFIG_SHELL" = x; then |
|
|
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
|
|
144 | emulate sh |
|
|
145 | NULLCMD=: |
|
|
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
|
147 | # is contrary to our usage. Disable this feature. |
|
|
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
|
149 | setopt NO_GLOB_SUBST |
|
|
150 | else \$as_nop |
|
|
151 | case \`(set -o) 2>/dev/null\` in #( |
|
|
152 | *posix*) : |
|
|
153 | set -o posix ;; #( |
|
|
154 | *) : |
|
|
155 | ;; |
|
|
156 | esac |
|
|
157 | fi |
|
|
158 | " |
|
|
159 | as_required="as_fn_return () { (exit \$1); } |
|
|
160 | as_fn_success () { as_fn_return 0; } |
|
|
161 | as_fn_failure () { as_fn_return 1; } |
|
|
162 | as_fn_ret_success () { return 0; } |
|
|
163 | as_fn_ret_failure () { return 1; } |
|
|
164 | |
|
|
165 | exitcode=0 |
|
|
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
|
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
|
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
|
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
|
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
|
|
172 | |
|
|
173 | else \$as_nop |
|
|
174 | exitcode=1; echo positional parameters were not saved. |
|
|
175 | fi |
|
|
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
|
|
179 | test -x / || exit 1" |
|
|
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
|
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
|
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
|
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
|
184 | test \$(( 1 + 1 )) = 2 || exit 1" |
|
|
185 | if (eval "$as_required") 2>/dev/null |
|
|
186 | then : |
|
|
187 | as_have_required=yes |
|
|
188 | else $as_nop |
|
|
189 | as_have_required=no |
|
|
190 | fi |
|
|
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
192 | then : |
|
|
193 | |
|
|
194 | else $as_nop |
|
|
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
196 | as_found=false |
|
|
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
198 | do |
|
|
199 | IFS=$as_save_IFS |
|
|
200 | case $as_dir in #((( |
|
|
201 | '') as_dir=./ ;; |
|
|
202 | */) ;; |
|
|
203 | *) as_dir=$as_dir/ ;; |
|
|
204 | esac |
|
|
205 | as_found=: |
|
|
206 | case $as_dir in #( |
|
|
207 | /*) |
|
|
208 | for as_base in sh bash ksh sh5; do |
|
|
209 | # Try only shells that exist, to save several forks. |
|
|
210 | as_shell=$as_dir$as_base |
|
|
211 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
212 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
213 | then : |
|
|
214 | CONFIG_SHELL=$as_shell as_have_required=yes |
|
|
215 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
216 | then : |
|
|
217 | break 2 |
|
|
218 | fi |
|
|
219 | fi |
|
|
220 | done;; |
|
|
221 | esac |
|
|
222 | as_found=false |
97 | done |
223 | done |
98 | PS1='$ ' |
224 | IFS=$as_save_IFS |
99 | PS2='> ' |
225 | if $as_found |
100 | PS4='+ ' |
226 | then : |
101 | |
227 | |
102 | # NLS nuisances. |
228 | else $as_nop |
103 | for as_var in \ |
229 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
230 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
231 | then : |
106 | LC_TELEPHONE LC_TIME |
232 | CONFIG_SHELL=$SHELL as_have_required=yes |
107 | do |
233 | fi |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
234 | fi |
109 | eval $as_var=C; export $as_var |
235 | |
|
|
236 | |
|
|
237 | if test "x$CONFIG_SHELL" != x |
|
|
238 | then : |
|
|
239 | export CONFIG_SHELL |
|
|
240 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
241 | # neutralization value for shells without unset; and this also |
|
|
242 | # works around shells that cannot unset nonexistent variables. |
|
|
243 | # Preserve -v and -x to the replacement shell. |
|
|
244 | BASH_ENV=/dev/null |
|
|
245 | ENV=/dev/null |
|
|
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
247 | case $- in # (((( |
|
|
248 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
249 | *v* ) as_opts=-v ;; |
|
|
250 | *x* ) as_opts=-x ;; |
|
|
251 | * ) as_opts= ;; |
|
|
252 | esac |
|
|
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
254 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
255 | # out after a failed `exec'. |
|
|
256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
257 | exit 255 |
|
|
258 | fi |
|
|
259 | |
|
|
260 | if test x$as_have_required = xno |
|
|
261 | then : |
|
|
262 | printf "%s\n" "$0: This script requires a shell more modern than all" |
|
|
263 | printf "%s\n" "$0: the shells that I found on your system." |
|
|
264 | if test ${ZSH_VERSION+y} ; then |
|
|
265 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
|
266 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
110 | else |
267 | else |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
268 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
|
|
269 | $0: including any error possibly output before this |
|
|
270 | $0: message. Then install a modern shell, or manually run |
|
|
271 | $0: the script under such a shell if you do have one." |
112 | fi |
272 | fi |
113 | done |
273 | exit 1 |
|
|
274 | fi |
|
|
275 | fi |
|
|
276 | fi |
|
|
277 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
278 | export SHELL |
|
|
279 | # Unset more variables known to interfere with behavior of common tools. |
|
|
280 | CLICOLOR_FORCE= GREP_OPTIONS= |
|
|
281 | unset CLICOLOR_FORCE GREP_OPTIONS |
114 | |
282 | |
115 | # Required to use basename. |
283 | ## --------------------- ## |
|
|
284 | ## M4sh Shell Functions. ## |
|
|
285 | ## --------------------- ## |
|
|
286 | # as_fn_unset VAR |
|
|
287 | # --------------- |
|
|
288 | # Portably unset VAR. |
|
|
289 | as_fn_unset () |
|
|
290 | { |
|
|
291 | { eval $1=; unset $1;} |
|
|
292 | } |
|
|
293 | as_unset=as_fn_unset |
|
|
294 | |
|
|
295 | |
|
|
296 | # as_fn_set_status STATUS |
|
|
297 | # ----------------------- |
|
|
298 | # Set $? to STATUS, without forking. |
|
|
299 | as_fn_set_status () |
|
|
300 | { |
|
|
301 | return $1 |
|
|
302 | } # as_fn_set_status |
|
|
303 | |
|
|
304 | # as_fn_exit STATUS |
|
|
305 | # ----------------- |
|
|
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
307 | as_fn_exit () |
|
|
308 | { |
|
|
309 | set +e |
|
|
310 | as_fn_set_status $1 |
|
|
311 | exit $1 |
|
|
312 | } # as_fn_exit |
|
|
313 | # as_fn_nop |
|
|
314 | # --------- |
|
|
315 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
316 | as_fn_nop () |
|
|
317 | { |
|
|
318 | return $? |
|
|
319 | } |
|
|
320 | as_nop=as_fn_nop |
|
|
321 | |
|
|
322 | # as_fn_mkdir_p |
|
|
323 | # ------------- |
|
|
324 | # Create "$as_dir" as a directory, including parents if necessary. |
|
|
325 | as_fn_mkdir_p () |
|
|
326 | { |
|
|
327 | |
|
|
328 | case $as_dir in #( |
|
|
329 | -*) as_dir=./$as_dir;; |
|
|
330 | esac |
|
|
331 | test -d "$as_dir" || eval $as_mkdir_p || { |
|
|
332 | as_dirs= |
|
|
333 | while :; do |
|
|
334 | case $as_dir in #( |
|
|
335 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
|
336 | *) as_qdir=$as_dir;; |
|
|
337 | esac |
|
|
338 | as_dirs="'$as_qdir' $as_dirs" |
|
|
339 | as_dir=`$as_dirname -- "$as_dir" || |
|
|
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
342 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
|
344 | printf "%s\n" X"$as_dir" | |
|
|
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
346 | s//\1/ |
|
|
347 | q |
|
|
348 | } |
|
|
349 | /^X\(\/\/\)[^/].*/{ |
|
|
350 | s//\1/ |
|
|
351 | q |
|
|
352 | } |
|
|
353 | /^X\(\/\/\)$/{ |
|
|
354 | s//\1/ |
|
|
355 | q |
|
|
356 | } |
|
|
357 | /^X\(\/\).*/{ |
|
|
358 | s//\1/ |
|
|
359 | q |
|
|
360 | } |
|
|
361 | s/.*/./; q'` |
|
|
362 | test -d "$as_dir" && break |
|
|
363 | done |
|
|
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
|
365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
|
366 | |
|
|
367 | |
|
|
368 | } # as_fn_mkdir_p |
|
|
369 | |
|
|
370 | # as_fn_executable_p FILE |
|
|
371 | # ----------------------- |
|
|
372 | # Test if FILE is an executable regular file. |
|
|
373 | as_fn_executable_p () |
|
|
374 | { |
|
|
375 | test -f "$1" && test -x "$1" |
|
|
376 | } # as_fn_executable_p |
|
|
377 | # as_fn_append VAR VALUE |
|
|
378 | # ---------------------- |
|
|
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
380 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
381 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
382 | # implementations. |
|
|
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
384 | then : |
|
|
385 | eval 'as_fn_append () |
|
|
386 | { |
|
|
387 | eval $1+=\$2 |
|
|
388 | }' |
|
|
389 | else $as_nop |
|
|
390 | as_fn_append () |
|
|
391 | { |
|
|
392 | eval $1=\$$1\$2 |
|
|
393 | } |
|
|
394 | fi # as_fn_append |
|
|
395 | |
|
|
396 | # as_fn_arith ARG... |
|
|
397 | # ------------------ |
|
|
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
400 | # must be portable across $(()) and expr. |
|
|
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
402 | then : |
|
|
403 | eval 'as_fn_arith () |
|
|
404 | { |
|
|
405 | as_val=$(( $* )) |
|
|
406 | }' |
|
|
407 | else $as_nop |
|
|
408 | as_fn_arith () |
|
|
409 | { |
|
|
410 | as_val=`expr "$@" || test $? -eq 1` |
|
|
411 | } |
|
|
412 | fi # as_fn_arith |
|
|
413 | |
|
|
414 | # as_fn_nop |
|
|
415 | # --------- |
|
|
416 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
417 | as_fn_nop () |
|
|
418 | { |
|
|
419 | return $? |
|
|
420 | } |
|
|
421 | as_nop=as_fn_nop |
|
|
422 | |
|
|
423 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
424 | # ---------------------------------------- |
|
|
425 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
426 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
427 | # script with STATUS, using 1 if that was 0. |
|
|
428 | as_fn_error () |
|
|
429 | { |
|
|
430 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
431 | if test "$4"; then |
|
|
432 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
434 | fi |
|
|
435 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
436 | as_fn_exit $as_status |
|
|
437 | } # as_fn_error |
|
|
438 | |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
118 | as_expr=expr |
441 | as_expr=expr |
119 | else |
442 | else |
120 | as_expr=false |
443 | as_expr=false |
… | |
… | |
124 | as_basename=basename |
447 | as_basename=basename |
125 | else |
448 | else |
126 | as_basename=false |
449 | as_basename=false |
127 | fi |
450 | fi |
128 | |
451 | |
|
|
452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
453 | as_dirname=dirname |
|
|
454 | else |
|
|
455 | as_dirname=false |
|
|
456 | fi |
129 | |
457 | |
130 | # Name of the executable. |
|
|
131 | as_me=`$as_basename -- "$0" || |
458 | as_me=`$as_basename -- "$0" || |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ |
460 | X"$0" : 'X\(//\)$' \| \ |
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
135 | echo X/"$0" | |
462 | printf "%s\n" X/"$0" | |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ |
464 | s//\1/ |
138 | q |
465 | q |
139 | } |
466 | } |
140 | /^X\/\(\/\/\)$/{ |
467 | /^X\/\(\/\/\)$/{ |
… | |
… | |
145 | s//\1/ |
472 | s//\1/ |
146 | q |
473 | q |
147 | } |
474 | } |
148 | s/.*/./; q'` |
475 | s/.*/./; q'` |
149 | |
476 | |
150 | # CDPATH. |
477 | # Avoid depending upon Character Ranges. |
151 | $as_unset CDPATH |
478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
481 | as_cr_digits='0123456789' |
|
|
482 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
152 | |
483 | |
153 | |
484 | |
154 | if test "x$CONFIG_SHELL" = x; then |
485 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
155 | if (eval ":") 2>/dev/null; then |
486 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
156 | as_have_required=yes |
|
|
157 | else |
|
|
158 | as_have_required=no |
|
|
159 | fi |
|
|
160 | |
|
|
161 | if test $as_have_required = yes && (eval ": |
|
|
162 | (as_func_return () { |
|
|
163 | (exit \$1) |
|
|
164 | } |
|
|
165 | as_func_success () { |
|
|
166 | as_func_return 0 |
|
|
167 | } |
|
|
168 | as_func_failure () { |
|
|
169 | as_func_return 1 |
|
|
170 | } |
|
|
171 | as_func_ret_success () { |
|
|
172 | return 0 |
|
|
173 | } |
|
|
174 | as_func_ret_failure () { |
|
|
175 | return 1 |
|
|
176 | } |
|
|
177 | |
|
|
178 | exitcode=0 |
|
|
179 | if as_func_success; then |
|
|
180 | : |
|
|
181 | else |
|
|
182 | exitcode=1 |
|
|
183 | echo as_func_success failed. |
|
|
184 | fi |
|
|
185 | |
|
|
186 | if as_func_failure; then |
|
|
187 | exitcode=1 |
|
|
188 | echo as_func_failure succeeded. |
|
|
189 | fi |
|
|
190 | |
|
|
191 | if as_func_ret_success; then |
|
|
192 | : |
|
|
193 | else |
|
|
194 | exitcode=1 |
|
|
195 | echo as_func_ret_success failed. |
|
|
196 | fi |
|
|
197 | |
|
|
198 | if as_func_ret_failure; then |
|
|
199 | exitcode=1 |
|
|
200 | echo as_func_ret_failure succeeded. |
|
|
201 | fi |
|
|
202 | |
|
|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
204 | : |
|
|
205 | else |
|
|
206 | exitcode=1 |
|
|
207 | echo positional parameters were not saved. |
|
|
208 | fi |
|
|
209 | |
|
|
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
|
|
211 | |
|
|
212 | ( |
|
|
213 | as_lineno_1=\$LINENO |
|
|
214 | as_lineno_2=\$LINENO |
|
|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
|
217 | ") 2> /dev/null; then |
|
|
218 | : |
|
|
219 | else |
|
|
220 | as_candidate_shells= |
|
|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
223 | do |
|
|
224 | IFS=$as_save_IFS |
|
|
225 | test -z "$as_dir" && as_dir=. |
|
|
226 | case $as_dir in |
|
|
227 | /*) |
|
|
228 | for as_base in sh bash ksh sh5; do |
|
|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
|
230 | done;; |
|
|
231 | esac |
|
|
232 | done |
|
|
233 | IFS=$as_save_IFS |
|
|
234 | |
|
|
235 | |
|
|
236 | for as_shell in $as_candidate_shells $SHELL; do |
|
|
237 | # Try only shells that exist, to save several forks. |
|
|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
|
|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
241 | emulate sh |
|
|
242 | NULLCMD=: |
|
|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
244 | # is contrary to our usage. Disable this feature. |
|
|
245 | alias -g '${1+"$@"}'='"$@"' |
|
|
246 | setopt NO_GLOB_SUBST |
|
|
247 | else |
|
|
248 | case `(set -o) 2>/dev/null` in |
|
|
249 | *posix*) set -o posix ;; |
|
|
250 | esac |
|
|
251 | |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | : |
|
|
256 | _ASEOF |
|
|
257 | }; then |
|
|
258 | CONFIG_SHELL=$as_shell |
|
|
259 | as_have_required=yes |
|
|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
262 | emulate sh |
|
|
263 | NULLCMD=: |
|
|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
265 | # is contrary to our usage. Disable this feature. |
|
|
266 | alias -g '${1+"$@"}'='"$@"' |
|
|
267 | setopt NO_GLOB_SUBST |
|
|
268 | else |
|
|
269 | case `(set -o) 2>/dev/null` in |
|
|
270 | *posix*) set -o posix ;; |
|
|
271 | esac |
|
|
272 | |
|
|
273 | fi |
|
|
274 | |
|
|
275 | |
|
|
276 | : |
|
|
277 | (as_func_return () { |
|
|
278 | (exit $1) |
|
|
279 | } |
|
|
280 | as_func_success () { |
|
|
281 | as_func_return 0 |
|
|
282 | } |
|
|
283 | as_func_failure () { |
|
|
284 | as_func_return 1 |
|
|
285 | } |
|
|
286 | as_func_ret_success () { |
|
|
287 | return 0 |
|
|
288 | } |
|
|
289 | as_func_ret_failure () { |
|
|
290 | return 1 |
|
|
291 | } |
|
|
292 | |
|
|
293 | exitcode=0 |
|
|
294 | if as_func_success; then |
|
|
295 | : |
|
|
296 | else |
|
|
297 | exitcode=1 |
|
|
298 | echo as_func_success failed. |
|
|
299 | fi |
|
|
300 | |
|
|
301 | if as_func_failure; then |
|
|
302 | exitcode=1 |
|
|
303 | echo as_func_failure succeeded. |
|
|
304 | fi |
|
|
305 | |
|
|
306 | if as_func_ret_success; then |
|
|
307 | : |
|
|
308 | else |
|
|
309 | exitcode=1 |
|
|
310 | echo as_func_ret_success failed. |
|
|
311 | fi |
|
|
312 | |
|
|
313 | if as_func_ret_failure; then |
|
|
314 | exitcode=1 |
|
|
315 | echo as_func_ret_failure succeeded. |
|
|
316 | fi |
|
|
317 | |
|
|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
|
319 | : |
|
|
320 | else |
|
|
321 | exitcode=1 |
|
|
322 | echo positional parameters were not saved. |
|
|
323 | fi |
|
|
324 | |
|
|
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
|
|
326 | |
|
|
327 | ( |
|
|
328 | as_lineno_1=$LINENO |
|
|
329 | as_lineno_2=$LINENO |
|
|
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
487 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
|
|
332 | |
|
|
333 | _ASEOF |
|
|
334 | }; then |
|
|
335 | break |
|
|
336 | fi |
|
|
337 | |
|
|
338 | fi |
|
|
339 | |
|
|
340 | done |
|
|
341 | |
|
|
342 | if test "x$CONFIG_SHELL" != x; then |
|
|
343 | for as_var in BASH_ENV ENV |
|
|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
345 | done |
|
|
346 | export CONFIG_SHELL |
|
|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
|
348 | fi |
|
|
349 | |
|
|
350 | |
|
|
351 | if test $as_have_required = no; then |
|
|
352 | echo This script requires a shell more modern than all the |
|
|
353 | echo shells that I found on your system. Please install a |
|
|
354 | echo modern shell, or manually run the script under such a |
|
|
355 | echo shell if you do have one. |
|
|
356 | { (exit 1); exit 1; } |
|
|
357 | fi |
|
|
358 | |
|
|
359 | |
|
|
360 | fi |
|
|
361 | |
|
|
362 | fi |
|
|
363 | |
|
|
364 | |
|
|
365 | |
|
|
366 | (eval "as_func_return () { |
|
|
367 | (exit \$1) |
|
|
368 | } |
|
|
369 | as_func_success () { |
|
|
370 | as_func_return 0 |
|
|
371 | } |
|
|
372 | as_func_failure () { |
|
|
373 | as_func_return 1 |
|
|
374 | } |
|
|
375 | as_func_ret_success () { |
|
|
376 | return 0 |
|
|
377 | } |
|
|
378 | as_func_ret_failure () { |
|
|
379 | return 1 |
|
|
380 | } |
|
|
381 | |
|
|
382 | exitcode=0 |
|
|
383 | if as_func_success; then |
|
|
384 | : |
|
|
385 | else |
|
|
386 | exitcode=1 |
|
|
387 | echo as_func_success failed. |
|
|
388 | fi |
|
|
389 | |
|
|
390 | if as_func_failure; then |
|
|
391 | exitcode=1 |
|
|
392 | echo as_func_failure succeeded. |
|
|
393 | fi |
|
|
394 | |
|
|
395 | if as_func_ret_success; then |
|
|
396 | : |
|
|
397 | else |
|
|
398 | exitcode=1 |
|
|
399 | echo as_func_ret_success failed. |
|
|
400 | fi |
|
|
401 | |
|
|
402 | if as_func_ret_failure; then |
|
|
403 | exitcode=1 |
|
|
404 | echo as_func_ret_failure succeeded. |
|
|
405 | fi |
|
|
406 | |
|
|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
408 | : |
|
|
409 | else |
|
|
410 | exitcode=1 |
|
|
411 | echo positional parameters were not saved. |
|
|
412 | fi |
|
|
413 | |
|
|
414 | test \$exitcode = 0") || { |
|
|
415 | echo No shell found that supports shell functions. |
|
|
416 | echo Please tell autoconf@gnu.org about your system, |
|
|
417 | echo including any error possibly output before this |
|
|
418 | echo message |
|
|
419 | } |
|
|
420 | |
|
|
421 | |
|
|
422 | |
|
|
423 | as_lineno_1=$LINENO |
|
|
424 | as_lineno_2=$LINENO |
|
|
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
488 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
427 | |
|
|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
430 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
431 | # does the real work. The second script uses 'N' to pair each |
|
|
432 | # line-number line with the line containing $LINENO, and appends |
|
|
433 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
434 | # case at line end. |
|
|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
489 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
438 | sed -n ' |
490 | sed -n ' |
439 | p |
491 | p |
440 | /[$]LINENO/= |
492 | /[$]LINENO/= |
441 | ' <$as_myself | |
493 | ' <$as_myself | |
442 | sed ' |
494 | sed ' |
… | |
… | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
450 | t loop |
502 | t loop |
451 | s/-\n.*// |
503 | s/-\n.*// |
452 | ' >$as_me.lineno && |
504 | ' >$as_me.lineno && |
453 | chmod +x "$as_me.lineno" || |
505 | chmod +x "$as_me.lineno" || |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
506 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
455 | { (exit 1); exit 1; }; } |
|
|
456 | |
507 | |
|
|
508 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
|
509 | # already done that, so ensure we don't try to do so again and fall |
|
|
510 | # in an infinite loop. This has already happened in practice. |
|
|
511 | _as_can_reexec=no; export _as_can_reexec |
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
512 | # Don't try to exec as it changes $[0], causing all sort of problems |
458 | # (the dirname of $[0] is not the place where we might find the |
513 | # (the dirname of $[0] is not the place where we might find the |
459 | # original and so on. Autoconf is especially sensitive to this). |
514 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" |
515 | . "./$as_me.lineno" |
461 | # Exit status is that of the last command. |
516 | # Exit status is that of the last command. |
462 | exit |
517 | exit |
463 | } |
518 | } |
464 | |
519 | |
465 | |
520 | |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
521 | # Determine whether it's possible to make 'echo' print without a newline. |
467 | as_dirname=dirname |
522 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
468 | else |
523 | # for compatibility with existing Makefiles. |
469 | as_dirname=false |
|
|
470 | fi |
|
|
471 | |
|
|
472 | ECHO_C= ECHO_N= ECHO_T= |
524 | ECHO_C= ECHO_N= ECHO_T= |
473 | case `echo -n x` in |
525 | case `echo -n x` in #((((( |
474 | -n*) |
526 | -n*) |
475 | case `echo 'x\c'` in |
527 | case `echo 'xy\c'` in |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
477 | *) ECHO_C='\c';; |
529 | xy) ECHO_C='\c';; |
|
|
530 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
531 | ECHO_T=' ';; |
478 | esac;; |
532 | esac;; |
479 | *) |
533 | *) |
480 | ECHO_N='-n';; |
534 | ECHO_N='-n';; |
481 | esac |
535 | esac |
482 | |
536 | |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
537 | # For backward compatibility with old third-party macros, we provide |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
538 | # the shell variables $as_echo and $as_echo_n. New code should use |
485 | as_expr=expr |
539 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
486 | else |
540 | as_echo='printf %s\n' |
487 | as_expr=false |
541 | as_echo_n='printf %s' |
488 | fi |
542 | |
489 | |
543 | |
490 | rm -f conf$$ conf$$.exe conf$$.file |
544 | rm -f conf$$ conf$$.exe conf$$.file |
491 | if test -d conf$$.dir; then |
545 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file |
546 | rm -f conf$$.dir/conf$$.file |
493 | else |
547 | else |
494 | rm -f conf$$.dir |
548 | rm -f conf$$.dir |
495 | mkdir conf$$.dir |
549 | mkdir conf$$.dir 2>/dev/null |
496 | fi |
550 | fi |
497 | echo >conf$$.file |
551 | if (echo >conf$$.file) 2>/dev/null; then |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
552 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
499 | as_ln_s='ln -s' |
553 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: |
554 | # ... but there are two gotchas: |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
555 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
556 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
503 | # In both cases, we have to default to `cp -p'. |
557 | # In both cases, we have to default to `cp -pR'. |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
558 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
505 | as_ln_s='cp -p' |
559 | as_ln_s='cp -pR' |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
560 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln |
561 | as_ln_s=ln |
|
|
562 | else |
|
|
563 | as_ln_s='cp -pR' |
|
|
564 | fi |
508 | else |
565 | else |
509 | as_ln_s='cp -p' |
566 | as_ln_s='cp -pR' |
510 | fi |
567 | fi |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
568 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null |
569 | rmdir conf$$.dir 2>/dev/null |
513 | |
570 | |
514 | if mkdir -p . 2>/dev/null; then |
571 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: |
572 | as_mkdir_p='mkdir -p "$as_dir"' |
516 | else |
573 | else |
517 | test -d ./-p && rmdir ./-p |
574 | test -d ./-p && rmdir ./-p |
518 | as_mkdir_p=false |
575 | as_mkdir_p=false |
519 | fi |
576 | fi |
520 | |
577 | |
521 | if test -x / >/dev/null 2>&1; then |
|
|
522 | as_test_x='test -x' |
578 | as_test_x='test -x' |
523 | else |
579 | as_executable_p=as_fn_executable_p |
524 | if ls -dL / >/dev/null 2>&1; then |
|
|
525 | as_ls_L_option=L |
|
|
526 | else |
|
|
527 | as_ls_L_option= |
|
|
528 | fi |
|
|
529 | as_test_x=' |
|
|
530 | eval sh -c '\'' |
|
|
531 | if test -d "$1"; then |
|
|
532 | test -d "$1/."; |
|
|
533 | else |
|
|
534 | case $1 in |
|
|
535 | -*)set "./$1";; |
|
|
536 | esac; |
|
|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
538 | ???[sx]*):;;*)false;;esac;fi |
|
|
539 | '\'' sh |
|
|
540 | ' |
|
|
541 | fi |
|
|
542 | as_executable_p=$as_test_x |
|
|
543 | |
580 | |
544 | # Sed expression to map a string onto a valid CPP name. |
581 | # Sed expression to map a string onto a valid CPP name. |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
546 | |
583 | |
547 | # Sed expression to map a string onto a valid variable name. |
584 | # Sed expression to map a string onto a valid variable name. |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
549 | |
586 | |
550 | |
587 | |
551 | |
588 | test -n "$DJDIR" || exec 7<&0 </dev/null |
552 | exec 7<&0 </dev/null 6>&1 |
589 | exec 6>&1 |
553 | |
590 | |
554 | # Name of the host. |
591 | # Name of the host. |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
592 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
556 | # so uname gets run too. |
593 | # so uname gets run too. |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
594 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
558 | |
595 | |
559 | # |
596 | # |
560 | # Initializations. |
597 | # Initializations. |
… | |
… | |
565 | LIBOBJS= |
602 | LIBOBJS= |
566 | cross_compiling=no |
603 | cross_compiling=no |
567 | subdirs= |
604 | subdirs= |
568 | MFLAGS= |
605 | MFLAGS= |
569 | MAKEFLAGS= |
606 | MAKEFLAGS= |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
571 | |
607 | |
572 | # Identity of this package. |
608 | # Identity of this package. |
573 | PACKAGE_NAME= |
609 | PACKAGE_NAME='' |
574 | PACKAGE_TARNAME= |
610 | PACKAGE_TARNAME='' |
575 | PACKAGE_VERSION= |
611 | PACKAGE_VERSION='' |
576 | PACKAGE_STRING= |
612 | PACKAGE_STRING='' |
577 | PACKAGE_BUGREPORT= |
613 | PACKAGE_BUGREPORT='' |
|
|
614 | PACKAGE_URL='' |
578 | |
615 | |
579 | ac_unique_file="src/feature.h" |
616 | ac_unique_file="src/feature.h" |
580 | # Factoring default headers for most tests. |
617 | # Factoring default headers for most tests. |
581 | ac_includes_default="\ |
618 | ac_includes_default="\ |
|
|
619 | #include <stddef.h> |
|
|
620 | #ifdef HAVE_STDIO_H |
582 | #include <stdio.h> |
621 | # include <stdio.h> |
583 | #ifdef HAVE_SYS_TYPES_H |
|
|
584 | # include <sys/types.h> |
|
|
585 | #endif |
622 | #endif |
586 | #ifdef HAVE_SYS_STAT_H |
623 | #ifdef HAVE_STDLIB_H |
587 | # include <sys/stat.h> |
|
|
588 | #endif |
|
|
589 | #ifdef STDC_HEADERS |
|
|
590 | # include <stdlib.h> |
624 | # include <stdlib.h> |
591 | # include <stddef.h> |
|
|
592 | #else |
|
|
593 | # ifdef HAVE_STDLIB_H |
|
|
594 | # include <stdlib.h> |
|
|
595 | # endif |
|
|
596 | #endif |
625 | #endif |
597 | #ifdef HAVE_STRING_H |
626 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
|
599 | # include <memory.h> |
|
|
600 | # endif |
|
|
601 | # include <string.h> |
627 | # include <string.h> |
602 | #endif |
|
|
603 | #ifdef HAVE_STRINGS_H |
|
|
604 | # include <strings.h> |
|
|
605 | #endif |
628 | #endif |
606 | #ifdef HAVE_INTTYPES_H |
629 | #ifdef HAVE_INTTYPES_H |
607 | # include <inttypes.h> |
630 | # include <inttypes.h> |
608 | #endif |
631 | #endif |
609 | #ifdef HAVE_STDINT_H |
632 | #ifdef HAVE_STDINT_H |
610 | # include <stdint.h> |
633 | # include <stdint.h> |
611 | #endif |
634 | #endif |
|
|
635 | #ifdef HAVE_STRINGS_H |
|
|
636 | # include <strings.h> |
|
|
637 | #endif |
|
|
638 | #ifdef HAVE_SYS_TYPES_H |
|
|
639 | # include <sys/types.h> |
|
|
640 | #endif |
|
|
641 | #ifdef HAVE_SYS_STAT_H |
|
|
642 | # include <sys/stat.h> |
|
|
643 | #endif |
612 | #ifdef HAVE_UNISTD_H |
644 | #ifdef HAVE_UNISTD_H |
613 | # include <unistd.h> |
645 | # include <unistd.h> |
614 | #endif" |
646 | #endif" |
615 | |
647 | |
616 | ac_subst_vars='SHELL |
648 | ac_header_c_list= |
|
|
649 | ac_subst_vars='LTLIBOBJS |
|
|
650 | LIBOBJS |
|
|
651 | PERL_O |
|
|
652 | IF_PERL |
|
|
653 | PERLPRIVLIBEXP |
|
|
654 | PERLFLAGS |
|
|
655 | PERLLIB |
|
|
656 | PERL |
|
|
657 | XFT_CONFIG |
|
|
658 | EGREP |
|
|
659 | GREP |
|
|
660 | STARTUP_NOTIFICATION_LIBS |
|
|
661 | STARTUP_NOTIFICATION_CFLAGS |
|
|
662 | PIXBUF_LIBS |
|
|
663 | PIXBUF_CFLAGS |
|
|
664 | PTYTTY_LIBS |
|
|
665 | PTYTTY_CFLAGS |
|
|
666 | PKG_CONFIG |
|
|
667 | X_EXTRA_LIBS |
|
|
668 | X_LIBS |
|
|
669 | X_PRE_LIBS |
|
|
670 | X_CFLAGS |
|
|
671 | CXXCPP |
|
|
672 | XMKMF |
|
|
673 | TIC |
|
|
674 | RXVTNAME |
|
|
675 | LINKER |
|
|
676 | INSTALL_DATA |
|
|
677 | INSTALL_SCRIPT |
|
|
678 | INSTALL_PROGRAM |
|
|
679 | ac_ct_CXX |
|
|
680 | CXXFLAGS |
|
|
681 | CXX |
|
|
682 | OBJEXT |
|
|
683 | EXEEXT |
|
|
684 | ac_ct_CC |
|
|
685 | CPPFLAGS |
|
|
686 | LDFLAGS |
|
|
687 | CFLAGS |
|
|
688 | CC |
|
|
689 | DATE |
|
|
690 | VERSION |
|
|
691 | target_alias |
|
|
692 | host_alias |
|
|
693 | build_alias |
|
|
694 | LIBS |
|
|
695 | ECHO_T |
|
|
696 | ECHO_N |
|
|
697 | ECHO_C |
|
|
698 | DEFS |
|
|
699 | mandir |
|
|
700 | localedir |
|
|
701 | libdir |
|
|
702 | psdir |
|
|
703 | pdfdir |
|
|
704 | dvidir |
|
|
705 | htmldir |
|
|
706 | infodir |
|
|
707 | docdir |
|
|
708 | oldincludedir |
|
|
709 | includedir |
|
|
710 | runstatedir |
|
|
711 | localstatedir |
|
|
712 | sharedstatedir |
|
|
713 | sysconfdir |
|
|
714 | datadir |
|
|
715 | datarootdir |
|
|
716 | libexecdir |
|
|
717 | sbindir |
|
|
718 | bindir |
|
|
719 | program_transform_name |
|
|
720 | prefix |
|
|
721 | exec_prefix |
|
|
722 | PACKAGE_URL |
|
|
723 | PACKAGE_BUGREPORT |
|
|
724 | PACKAGE_STRING |
|
|
725 | PACKAGE_VERSION |
|
|
726 | PACKAGE_TARNAME |
|
|
727 | PACKAGE_NAME |
617 | PATH_SEPARATOR |
728 | PATH_SEPARATOR |
618 | PACKAGE_NAME |
729 | SHELL' |
619 | PACKAGE_TARNAME |
|
|
620 | PACKAGE_VERSION |
|
|
621 | PACKAGE_STRING |
|
|
622 | PACKAGE_BUGREPORT |
|
|
623 | exec_prefix |
|
|
624 | prefix |
|
|
625 | program_transform_name |
|
|
626 | bindir |
|
|
627 | sbindir |
|
|
628 | libexecdir |
|
|
629 | datarootdir |
|
|
630 | datadir |
|
|
631 | sysconfdir |
|
|
632 | sharedstatedir |
|
|
633 | localstatedir |
|
|
634 | includedir |
|
|
635 | oldincludedir |
|
|
636 | docdir |
|
|
637 | infodir |
|
|
638 | htmldir |
|
|
639 | dvidir |
|
|
640 | pdfdir |
|
|
641 | psdir |
|
|
642 | libdir |
|
|
643 | localedir |
|
|
644 | mandir |
|
|
645 | DEFS |
|
|
646 | ECHO_C |
|
|
647 | ECHO_N |
|
|
648 | ECHO_T |
|
|
649 | LIBS |
|
|
650 | build_alias |
|
|
651 | host_alias |
|
|
652 | target_alias |
|
|
653 | build |
|
|
654 | build_cpu |
|
|
655 | build_vendor |
|
|
656 | build_os |
|
|
657 | host |
|
|
658 | host_cpu |
|
|
659 | host_vendor |
|
|
660 | host_os |
|
|
661 | VERSION |
|
|
662 | DATE |
|
|
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
|
|
666 | CFLAGS |
|
|
667 | LDFLAGS |
|
|
668 | CPPFLAGS |
|
|
669 | ac_ct_CC |
|
|
670 | EXEEXT |
|
|
671 | OBJEXT |
|
|
672 | CXX |
|
|
673 | CXXFLAGS |
|
|
674 | ac_ct_CXX |
|
|
675 | CPP |
|
|
676 | INSTALL_PROGRAM |
|
|
677 | INSTALL_SCRIPT |
|
|
678 | INSTALL_DATA |
|
|
679 | GREP |
|
|
680 | EGREP |
|
|
681 | LINKER |
|
|
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
|
|
684 | TIC |
|
|
685 | XMKMF |
|
|
686 | CXXCPP |
|
|
687 | X_CFLAGS |
|
|
688 | X_PRE_LIBS |
|
|
689 | X_LIBS |
|
|
690 | X_EXTRA_LIBS |
|
|
691 | afterimage_config |
|
|
692 | XPM_CPPFLAGS |
|
|
693 | XPM_CFLAGS |
|
|
694 | XPM_LIBS |
|
|
695 | rxvt_int16_typedef |
|
|
696 | rxvt_uint16_typedef |
|
|
697 | rxvt_int32_typedef |
|
|
698 | rxvt_uint32_typedef |
|
|
699 | rxvt_intp_define |
|
|
700 | rxvt_u_intp_define |
|
|
701 | PKG_CONFIG |
|
|
702 | XFT_CONFIG |
|
|
703 | PERL |
|
|
704 | PERLLIB |
|
|
705 | PERLFLAGS |
|
|
706 | PERLPRIVLIBEXP |
|
|
707 | IF_PERL |
|
|
708 | PERL_O |
|
|
709 | AFTERIMAGE_CFLAGS |
|
|
710 | AFTERIMAGE_LIBS |
|
|
711 | include_stdint_h |
|
|
712 | include_stdarg_h |
|
|
713 | include_stdlib_h |
|
|
714 | include_unistd_h |
|
|
715 | include_string_h |
|
|
716 | include_fcntl_h |
|
|
717 | include_util_h |
|
|
718 | include_assert_h |
|
|
719 | include_sys_ioctl_h |
|
|
720 | include_sys_select_h |
|
|
721 | include_sys_strredir_h |
|
|
722 | include_sys_time_h |
|
|
723 | include_time_h |
|
|
724 | LIBOBJS |
|
|
725 | LTLIBOBJS' |
|
|
726 | ac_subst_files='' |
730 | ac_subst_files='' |
|
|
731 | ac_user_opts=' |
|
|
732 | enable_option_checking |
|
|
733 | enable_everything |
|
|
734 | enable_assert |
|
|
735 | enable_warnings |
|
|
736 | enable_256_color |
|
|
737 | enable_unicode3 |
|
|
738 | enable_combining |
|
|
739 | enable_xft |
|
|
740 | enable_font_styles |
|
|
741 | enable_pixbuf |
|
|
742 | enable_startup_notification |
|
|
743 | enable_transparency |
|
|
744 | enable_fading |
|
|
745 | enable_rxvt_scroll |
|
|
746 | enable_next_scroll |
|
|
747 | enable_xterm_scroll |
|
|
748 | enable_perl |
|
|
749 | with_codesets |
|
|
750 | enable_xim |
|
|
751 | enable_backspace_key |
|
|
752 | enable_delete_key |
|
|
753 | enable_resources |
|
|
754 | enable_8bitctrls |
|
|
755 | enable_fallback |
|
|
756 | with_res_name |
|
|
757 | with_res_class |
|
|
758 | with_name |
|
|
759 | enable_swapscreen |
|
|
760 | enable_iso14755 |
|
|
761 | enable_frills |
|
|
762 | enable_keepscrolling |
|
|
763 | enable_selectionscrolling |
|
|
764 | enable_mousewheel |
|
|
765 | enable_slipwheeling |
|
|
766 | enable_smart_resize |
|
|
767 | enable_text_blink |
|
|
768 | enable_pointer_blank |
|
|
769 | with_term |
|
|
770 | with_terminfo |
|
|
771 | with_x |
|
|
772 | ' |
727 | ac_precious_vars='build_alias |
773 | ac_precious_vars='build_alias |
728 | host_alias |
774 | host_alias |
729 | target_alias |
775 | target_alias |
730 | CC |
776 | CC |
731 | CFLAGS |
777 | CFLAGS |
… | |
… | |
733 | LIBS |
779 | LIBS |
734 | CPPFLAGS |
780 | CPPFLAGS |
735 | CXX |
781 | CXX |
736 | CXXFLAGS |
782 | CXXFLAGS |
737 | CCC |
783 | CCC |
738 | CPP |
|
|
739 | XMKMF |
784 | XMKMF |
740 | CXXCPP' |
785 | CXXCPP' |
741 | |
786 | |
742 | |
787 | |
743 | # Initialize some variables set by options. |
788 | # Initialize some variables set by options. |
744 | ac_init_help= |
789 | ac_init_help= |
745 | ac_init_version=false |
790 | ac_init_version=false |
|
|
791 | ac_unrecognized_opts= |
|
|
792 | ac_unrecognized_sep= |
746 | # The variables have the same names as the options, with |
793 | # The variables have the same names as the options, with |
747 | # dashes changed to underlines. |
794 | # dashes changed to underlines. |
748 | cache_file=/dev/null |
795 | cache_file=/dev/null |
749 | exec_prefix=NONE |
796 | exec_prefix=NONE |
750 | no_create= |
797 | no_create= |
… | |
… | |
772 | datarootdir='${prefix}/share' |
819 | datarootdir='${prefix}/share' |
773 | datadir='${datarootdir}' |
820 | datadir='${datarootdir}' |
774 | sysconfdir='${prefix}/etc' |
821 | sysconfdir='${prefix}/etc' |
775 | sharedstatedir='${prefix}/com' |
822 | sharedstatedir='${prefix}/com' |
776 | localstatedir='${prefix}/var' |
823 | localstatedir='${prefix}/var' |
|
|
824 | runstatedir='${localstatedir}/run' |
777 | includedir='${prefix}/include' |
825 | includedir='${prefix}/include' |
778 | oldincludedir='/usr/include' |
826 | oldincludedir='/usr/include' |
779 | docdir='${datarootdir}/doc/${PACKAGE}' |
827 | docdir='${datarootdir}/doc/${PACKAGE}' |
780 | infodir='${datarootdir}/info' |
828 | infodir='${datarootdir}/info' |
781 | htmldir='${docdir}' |
829 | htmldir='${docdir}' |
… | |
… | |
796 | ac_prev= |
844 | ac_prev= |
797 | continue |
845 | continue |
798 | fi |
846 | fi |
799 | |
847 | |
800 | case $ac_option in |
848 | case $ac_option in |
801 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
849 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
|
850 | *=) ac_optarg= ;; |
802 | *) ac_optarg=yes ;; |
851 | *) ac_optarg=yes ;; |
803 | esac |
852 | esac |
804 | |
|
|
805 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
|
806 | |
853 | |
807 | case $ac_dashdash$ac_option in |
854 | case $ac_dashdash$ac_option in |
808 | --) |
855 | --) |
809 | ac_dashdash=yes ;; |
856 | ac_dashdash=yes ;; |
810 | |
857 | |
… | |
… | |
839 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
886 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
840 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
887 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
841 | datarootdir=$ac_optarg ;; |
888 | datarootdir=$ac_optarg ;; |
842 | |
889 | |
843 | -disable-* | --disable-*) |
890 | -disable-* | --disable-*) |
844 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
891 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
845 | # Reject names that are not valid shell variable names. |
892 | # Reject names that are not valid shell variable names. |
846 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
893 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
847 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
894 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
848 | { (exit 1); exit 1; }; } |
895 | ac_useropt_orig=$ac_useropt |
849 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
896 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
897 | case $ac_user_opts in |
|
|
898 | *" |
|
|
899 | "enable_$ac_useropt" |
|
|
900 | "*) ;; |
|
|
901 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
|
902 | ac_unrecognized_sep=', ';; |
|
|
903 | esac |
850 | eval enable_$ac_feature=no ;; |
904 | eval enable_$ac_useropt=no ;; |
851 | |
905 | |
852 | -docdir | --docdir | --docdi | --doc | --do) |
906 | -docdir | --docdir | --docdi | --doc | --do) |
853 | ac_prev=docdir ;; |
907 | ac_prev=docdir ;; |
854 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
908 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
855 | docdir=$ac_optarg ;; |
909 | docdir=$ac_optarg ;; |
… | |
… | |
858 | ac_prev=dvidir ;; |
912 | ac_prev=dvidir ;; |
859 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
913 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
860 | dvidir=$ac_optarg ;; |
914 | dvidir=$ac_optarg ;; |
861 | |
915 | |
862 | -enable-* | --enable-*) |
916 | -enable-* | --enable-*) |
863 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
917 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
864 | # Reject names that are not valid shell variable names. |
918 | # Reject names that are not valid shell variable names. |
865 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
919 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
866 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
920 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
867 | { (exit 1); exit 1; }; } |
921 | ac_useropt_orig=$ac_useropt |
868 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
922 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
923 | case $ac_user_opts in |
|
|
924 | *" |
|
|
925 | "enable_$ac_useropt" |
|
|
926 | "*) ;; |
|
|
927 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
|
928 | ac_unrecognized_sep=', ';; |
|
|
929 | esac |
869 | eval enable_$ac_feature=\$ac_optarg ;; |
930 | eval enable_$ac_useropt=\$ac_optarg ;; |
870 | |
931 | |
871 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
932 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
872 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
933 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
873 | | --exec | --exe | --ex) |
934 | | --exec | --exe | --ex) |
874 | ac_prev=exec_prefix ;; |
935 | ac_prev=exec_prefix ;; |
… | |
… | |
1009 | |
1070 | |
1010 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1011 | | -silent | --silent | --silen | --sile | --sil) |
1072 | | -silent | --silent | --silen | --sile | --sil) |
1012 | silent=yes ;; |
1073 | silent=yes ;; |
1013 | |
1074 | |
|
|
1075 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
|
|
1076 | | --runstate | --runstat | --runsta | --runst | --runs \ |
|
|
1077 | | --run | --ru | --r) |
|
|
1078 | ac_prev=runstatedir ;; |
|
|
1079 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
|
|
1080 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
|
|
1081 | | --run=* | --ru=* | --r=*) |
|
|
1082 | runstatedir=$ac_optarg ;; |
|
|
1083 | |
1014 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1084 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1015 | ac_prev=sbindir ;; |
1085 | ac_prev=sbindir ;; |
1016 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1086 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1017 | | --sbi=* | --sb=*) |
1087 | | --sbi=* | --sb=*) |
1018 | sbindir=$ac_optarg ;; |
1088 | sbindir=$ac_optarg ;; |
… | |
… | |
1055 | |
1125 | |
1056 | -version | --version | --versio | --versi | --vers | -V) |
1126 | -version | --version | --versio | --versi | --vers | -V) |
1057 | ac_init_version=: ;; |
1127 | ac_init_version=: ;; |
1058 | |
1128 | |
1059 | -with-* | --with-*) |
1129 | -with-* | --with-*) |
1060 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1130 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1061 | # Reject names that are not valid shell variable names. |
1131 | # Reject names that are not valid shell variable names. |
1062 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1063 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1133 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1064 | { (exit 1); exit 1; }; } |
1134 | ac_useropt_orig=$ac_useropt |
1065 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1135 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1136 | case $ac_user_opts in |
|
|
1137 | *" |
|
|
1138 | "with_$ac_useropt" |
|
|
1139 | "*) ;; |
|
|
1140 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
|
1141 | ac_unrecognized_sep=', ';; |
|
|
1142 | esac |
1066 | eval with_$ac_package=\$ac_optarg ;; |
1143 | eval with_$ac_useropt=\$ac_optarg ;; |
1067 | |
1144 | |
1068 | -without-* | --without-*) |
1145 | -without-* | --without-*) |
1069 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1146 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1070 | # Reject names that are not valid shell variable names. |
1147 | # Reject names that are not valid shell variable names. |
1071 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1148 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1072 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1149 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1073 | { (exit 1); exit 1; }; } |
1150 | ac_useropt_orig=$ac_useropt |
1074 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1151 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1152 | case $ac_user_opts in |
|
|
1153 | *" |
|
|
1154 | "with_$ac_useropt" |
|
|
1155 | "*) ;; |
|
|
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
|
1157 | ac_unrecognized_sep=', ';; |
|
|
1158 | esac |
1075 | eval with_$ac_package=no ;; |
1159 | eval with_$ac_useropt=no ;; |
1076 | |
1160 | |
1077 | --x) |
1161 | --x) |
1078 | # Obsolete; use --with-x. |
1162 | # Obsolete; use --with-x. |
1079 | with_x=yes ;; |
1163 | with_x=yes ;; |
1080 | |
1164 | |
… | |
… | |
1090 | ac_prev=x_libraries ;; |
1174 | ac_prev=x_libraries ;; |
1091 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1175 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1092 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1176 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1093 | x_libraries=$ac_optarg ;; |
1177 | x_libraries=$ac_optarg ;; |
1094 | |
1178 | |
1095 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1179 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1096 | Try \`$0 --help' for more information." >&2 |
1180 | Try \`$0 --help' for more information" |
1097 | { (exit 1); exit 1; }; } |
|
|
1098 | ;; |
1181 | ;; |
1099 | |
1182 | |
1100 | *=*) |
1183 | *=*) |
1101 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1184 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1102 | # Reject names that are not valid shell variable names. |
1185 | # Reject names that are not valid shell variable names. |
1103 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1186 | case $ac_envvar in #( |
|
|
1187 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1104 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1188 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1105 | { (exit 1); exit 1; }; } |
1189 | esac |
1106 | eval $ac_envvar=\$ac_optarg |
1190 | eval $ac_envvar=\$ac_optarg |
1107 | export $ac_envvar ;; |
1191 | export $ac_envvar ;; |
1108 | |
1192 | |
1109 | *) |
1193 | *) |
1110 | # FIXME: should be removed in autoconf 3.0. |
1194 | # FIXME: should be removed in autoconf 3.0. |
1111 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1195 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1112 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1196 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1113 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1197 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1114 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1198 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1115 | ;; |
1199 | ;; |
1116 | |
1200 | |
1117 | esac |
1201 | esac |
1118 | done |
1202 | done |
1119 | |
1203 | |
1120 | if test -n "$ac_prev"; then |
1204 | if test -n "$ac_prev"; then |
1121 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1205 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1122 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1206 | as_fn_error $? "missing argument to $ac_option" |
1123 | { (exit 1); exit 1; }; } |
|
|
1124 | fi |
1207 | fi |
1125 | |
1208 | |
1126 | # Be sure to have absolute directory names. |
1209 | if test -n "$ac_unrecognized_opts"; then |
|
|
1210 | case $enable_option_checking in |
|
|
1211 | no) ;; |
|
|
1212 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
|
1213 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
|
1214 | esac |
|
|
1215 | fi |
|
|
1216 | |
|
|
1217 | # Check all directory arguments for consistency. |
1127 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1218 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1128 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1219 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1129 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1220 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1130 | libdir localedir mandir |
1221 | libdir localedir mandir runstatedir |
1131 | do |
1222 | do |
1132 | eval ac_val=\$$ac_var |
1223 | eval ac_val=\$$ac_var |
|
|
1224 | # Remove trailing slashes. |
|
|
1225 | case $ac_val in |
|
|
1226 | */ ) |
|
|
1227 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
|
1228 | eval $ac_var=\$ac_val;; |
|
|
1229 | esac |
|
|
1230 | # Be sure to have absolute directory names. |
1133 | case $ac_val in |
1231 | case $ac_val in |
1134 | [\\/$]* | ?:[\\/]* ) continue;; |
1232 | [\\/$]* | ?:[\\/]* ) continue;; |
1135 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1233 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1136 | esac |
1234 | esac |
1137 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1235 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1138 | { (exit 1); exit 1; }; } |
|
|
1139 | done |
1236 | done |
1140 | |
1237 | |
1141 | # There might be people who depend on the old broken behavior: `$host' |
1238 | # There might be people who depend on the old broken behavior: `$host' |
1142 | # used to hold the argument of --host etc. |
1239 | # used to hold the argument of --host etc. |
1143 | # FIXME: To remove some day. |
1240 | # FIXME: To remove some day. |
… | |
… | |
1147 | |
1244 | |
1148 | # FIXME: To remove some day. |
1245 | # FIXME: To remove some day. |
1149 | if test "x$host_alias" != x; then |
1246 | if test "x$host_alias" != x; then |
1150 | if test "x$build_alias" = x; then |
1247 | if test "x$build_alias" = x; then |
1151 | cross_compiling=maybe |
1248 | cross_compiling=maybe |
1152 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
|
1153 | If a cross compiler is detected then cross compile mode will be used." >&2 |
|
|
1154 | elif test "x$build_alias" != "x$host_alias"; then |
1249 | elif test "x$build_alias" != "x$host_alias"; then |
1155 | cross_compiling=yes |
1250 | cross_compiling=yes |
1156 | fi |
1251 | fi |
1157 | fi |
1252 | fi |
1158 | |
1253 | |
… | |
… | |
1163 | |
1258 | |
1164 | |
1259 | |
1165 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1260 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1166 | ac_ls_di=`ls -di .` && |
1261 | ac_ls_di=`ls -di .` && |
1167 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1262 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1168 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1263 | as_fn_error $? "working directory cannot be determined" |
1169 | { (exit 1); exit 1; }; } |
|
|
1170 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1264 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1171 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1265 | as_fn_error $? "pwd does not report name of working directory" |
1172 | { (exit 1); exit 1; }; } |
|
|
1173 | |
1266 | |
1174 | |
1267 | |
1175 | # Find the source files, if location was not specified. |
1268 | # Find the source files, if location was not specified. |
1176 | if test -z "$srcdir"; then |
1269 | if test -z "$srcdir"; then |
1177 | ac_srcdir_defaulted=yes |
1270 | ac_srcdir_defaulted=yes |
1178 | # Try the directory containing this script, then the parent directory. |
1271 | # Try the directory containing this script, then the parent directory. |
1179 | ac_confdir=`$as_dirname -- "$0" || |
1272 | ac_confdir=`$as_dirname -- "$as_myself" || |
1180 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1273 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1181 | X"$0" : 'X\(//\)[^/]' \| \ |
1274 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1182 | X"$0" : 'X\(//\)$' \| \ |
1275 | X"$as_myself" : 'X\(//\)$' \| \ |
1183 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1276 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1184 | echo X"$0" | |
1277 | printf "%s\n" X"$as_myself" | |
1185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1186 | s//\1/ |
1279 | s//\1/ |
1187 | q |
1280 | q |
1188 | } |
1281 | } |
1189 | /^X\(\/\/\)[^/].*/{ |
1282 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
1206 | else |
1299 | else |
1207 | ac_srcdir_defaulted=no |
1300 | ac_srcdir_defaulted=no |
1208 | fi |
1301 | fi |
1209 | if test ! -r "$srcdir/$ac_unique_file"; then |
1302 | if test ! -r "$srcdir/$ac_unique_file"; then |
1210 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1303 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1211 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1304 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1212 | { (exit 1); exit 1; }; } |
|
|
1213 | fi |
1305 | fi |
1214 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1306 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1215 | ac_abs_confdir=`( |
1307 | ac_abs_confdir=`( |
1216 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1308 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1217 | { (exit 1); exit 1; }; } |
|
|
1218 | pwd)` |
1309 | pwd)` |
1219 | # When building in place, set srcdir=. |
1310 | # When building in place, set srcdir=. |
1220 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1311 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1221 | srcdir=. |
1312 | srcdir=. |
1222 | fi |
1313 | fi |
… | |
… | |
1252 | Configuration: |
1343 | Configuration: |
1253 | -h, --help display this help and exit |
1344 | -h, --help display this help and exit |
1254 | --help=short display options specific to this package |
1345 | --help=short display options specific to this package |
1255 | --help=recursive display the short help of all the included packages |
1346 | --help=recursive display the short help of all the included packages |
1256 | -V, --version display version information and exit |
1347 | -V, --version display version information and exit |
1257 | -q, --quiet, --silent do not print \`checking...' messages |
1348 | -q, --quiet, --silent do not print \`checking ...' messages |
1258 | --cache-file=FILE cache test results in FILE [disabled] |
1349 | --cache-file=FILE cache test results in FILE [disabled] |
1259 | -C, --config-cache alias for \`--cache-file=config.cache' |
1350 | -C, --config-cache alias for \`--cache-file=config.cache' |
1260 | -n, --no-create do not create output files |
1351 | -n, --no-create do not create output files |
1261 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1352 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1262 | |
1353 | |
1263 | Installation directories: |
1354 | Installation directories: |
1264 | --prefix=PREFIX install architecture-independent files in PREFIX |
1355 | --prefix=PREFIX install architecture-independent files in PREFIX |
1265 | [$ac_default_prefix] |
1356 | [$ac_default_prefix] |
1266 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1357 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1267 | [PREFIX] |
1358 | [PREFIX] |
1268 | |
1359 | |
1269 | By default, \`make install' will install all the files in |
1360 | By default, \`make install' will install all the files in |
1270 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1361 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1271 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1362 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1272 | for instance \`--prefix=\$HOME'. |
1363 | for instance \`--prefix=\$HOME'. |
1273 | |
1364 | |
1274 | For better control, use the options below. |
1365 | For better control, use the options below. |
1275 | |
1366 | |
1276 | Fine tuning of the installation directories: |
1367 | Fine tuning of the installation directories: |
1277 | --bindir=DIR user executables [EPREFIX/bin] |
1368 | --bindir=DIR user executables [EPREFIX/bin] |
1278 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1369 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1279 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1370 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1280 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1371 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1281 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1372 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1282 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1373 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
1374 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1283 | --libdir=DIR object code libraries [EPREFIX/lib] |
1375 | --libdir=DIR object code libraries [EPREFIX/lib] |
1284 | --includedir=DIR C header files [PREFIX/include] |
1376 | --includedir=DIR C header files [PREFIX/include] |
1285 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1377 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1286 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1378 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1287 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1379 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1288 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1380 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1289 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1381 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1290 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1382 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1291 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1383 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1292 | --htmldir=DIR html documentation [DOCDIR] |
1384 | --htmldir=DIR html documentation [DOCDIR] |
1293 | --dvidir=DIR dvi documentation [DOCDIR] |
1385 | --dvidir=DIR dvi documentation [DOCDIR] |
1294 | --pdfdir=DIR pdf documentation [DOCDIR] |
1386 | --pdfdir=DIR pdf documentation [DOCDIR] |
1295 | --psdir=DIR ps documentation [DOCDIR] |
1387 | --psdir=DIR ps documentation [DOCDIR] |
1296 | _ACEOF |
1388 | _ACEOF |
1297 | |
1389 | |
1298 | cat <<\_ACEOF |
1390 | cat <<\_ACEOF |
1299 | |
1391 | |
1300 | X features: |
1392 | X features: |
1301 | --x-includes=DIR X include files are in DIR |
1393 | --x-includes=DIR X include files are in DIR |
1302 | --x-libraries=DIR X library files are in DIR |
1394 | --x-libraries=DIR X library files are in DIR |
1303 | |
|
|
1304 | Program names: |
|
|
1305 | --program-prefix=PREFIX prepend PREFIX to installed program names |
|
|
1306 | --program-suffix=SUFFIX append SUFFIX to installed program names |
|
|
1307 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
|
1308 | |
|
|
1309 | System types: |
|
|
1310 | --build=BUILD configure for building on BUILD [guessed] |
|
|
1311 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
|
1312 | _ACEOF |
1395 | _ACEOF |
1313 | fi |
1396 | fi |
1314 | |
1397 | |
1315 | if test -n "$ac_init_help"; then |
1398 | if test -n "$ac_init_help"; then |
1316 | |
1399 | |
1317 | cat <<\_ACEOF |
1400 | cat <<\_ACEOF |
1318 | |
1401 | |
1319 | Optional Features: |
1402 | Optional Features: |
|
|
1403 | --disable-option-checking ignore unrecognized --enable/--with options |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1404 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1405 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1406 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1407 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1408 | --enable-assert enable assertions |
|
|
1409 | --enable-warnings turn on g++ warnings |
|
|
1410 | --enable-256-color enable 256-color support |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1411 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1412 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1413 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1414 | --enable-font-styles enable bold and italic support |
1329 | --enable-xpm-background enable background pixmaps |
|
|
1330 | --enable-afterimage enable integration with libAfterImage for background images |
1415 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
|
|
1416 | --enable-startup-notification enable freedesktop startup notification support |
1331 | --enable-transparency enable transparent backgrounds |
1417 | --enable-transparency enable transparent backgrounds |
1332 | --enable-tinting enable tinting of transparent bg |
|
|
1333 | --enable-fading enable colors fading when off focus |
1418 | --enable-fading enable colors fading when off focus |
1334 | --enable-rxvt-scroll enable rxvt style scrollbar |
1419 | --enable-rxvt-scroll enable rxvt style scrollbar |
1335 | --enable-next-scroll enable NeXT style scrollbar |
1420 | --enable-next-scroll enable NeXT style scrollbar |
1336 | --enable-xterm-scroll enable Xterm style scrollbar |
1421 | --enable-xterm-scroll enable Xterm style scrollbar |
1337 | --enable-perl enable embedded perl interpreter |
1422 | --enable-perl enable embedded perl interpreter |
1338 | --enable-plain-scroll enable plain style scrollbar |
|
|
1339 | --enable-xim XIM (X Input Method) protocol support |
1423 | --enable-xim XIM (X Input Method) protocol support |
1340 | --disable-backspace-key disable handling of the backspace key |
1424 | --disable-backspace-key disable handling of the backspace key |
1341 | --disable-delete-key disable handling of the delete key |
1425 | --disable-delete-key disable handling of the delete key |
1342 | --disable-resources disable all resource checking |
1426 | --disable-resources disable all resource checking |
1343 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1427 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1344 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1428 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1345 | --disable-swapscreen disable swap screen support |
1429 | --disable-swapscreen disable swap screen support |
1346 | --enable-iso14755 enable support for extended ISO 14755 modes |
1430 | --enable-iso14755 enable support for extended ISO 14755 modes |
1347 | --enable-frills enable support for rarely used features |
1431 | --enable-frills enable support for rarely used features |
1348 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1432 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1349 | --enable-selectionscrolling enable scrolling during selections |
1433 | --enable-selectionscrolling enable scrolling during selections |
1350 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1434 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1351 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1435 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1352 | --enable-smart-resize enable smart growth/shrink behaviour |
1436 | --enable-smart-resize enable smart growth/shrink behaviour |
1353 | --enable-text-blink enable blinking text |
1437 | --enable-text-blink enable blinking text |
1354 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1438 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1355 | --enable-utmp enable utmp (utmpx) support |
|
|
1356 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1357 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1358 | |
1439 | |
1359 | Optional Packages: |
1440 | Optional Packages: |
1360 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1441 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1361 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1442 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1362 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
|
|
1363 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1443 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1364 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1444 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1365 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1445 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1366 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1446 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1367 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1447 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1368 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1448 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1369 | --with-x use the X Window System |
1449 | --with-x use the X Window System |
1370 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1371 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1372 | --with-xpm use XPM |
|
|
1373 | |
1450 | |
1374 | Some influential environment variables: |
1451 | Some influential environment variables: |
1375 | CC C compiler command |
1452 | CC C compiler command |
1376 | CFLAGS C compiler flags |
1453 | CFLAGS C compiler flags |
1377 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1454 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1378 | nonstandard directory <lib dir> |
1455 | nonstandard directory <lib dir> |
1379 | LIBS libraries to pass to the linker, e.g. -l<library> |
1456 | LIBS libraries to pass to the linker, e.g. -l<library> |
1380 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1457 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1381 | you have headers in a nonstandard directory <include dir> |
1458 | you have headers in a nonstandard directory <include dir> |
1382 | CXX C++ compiler command |
1459 | CXX C++ compiler command |
1383 | CXXFLAGS C++ compiler flags |
1460 | CXXFLAGS C++ compiler flags |
1384 | CPP C preprocessor |
|
|
1385 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1461 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1386 | CXXCPP C++ preprocessor |
1462 | CXXCPP C++ preprocessor |
1387 | |
1463 | |
1388 | Use these variables to override the choices made by `configure' or to help |
1464 | Use these variables to override the choices made by `configure' or to help |
1389 | it to find libraries and programs with nonstandard names/locations. |
1465 | it to find libraries and programs with nonstandard names/locations. |
1390 | |
1466 | |
|
|
1467 | Report bugs to the package provider. |
1391 | _ACEOF |
1468 | _ACEOF |
1392 | ac_status=$? |
1469 | ac_status=$? |
1393 | fi |
1470 | fi |
1394 | |
1471 | |
1395 | if test "$ac_init_help" = "recursive"; then |
1472 | if test "$ac_init_help" = "recursive"; then |
1396 | # If there are subdirs, report their specific --help. |
1473 | # If there are subdirs, report their specific --help. |
1397 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1474 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1398 | test -d "$ac_dir" || continue |
1475 | test -d "$ac_dir" || |
|
|
1476 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
|
1477 | continue |
1399 | ac_builddir=. |
1478 | ac_builddir=. |
1400 | |
1479 | |
1401 | case "$ac_dir" in |
1480 | case "$ac_dir" in |
1402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1481 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1403 | *) |
1482 | *) |
1404 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1483 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1405 | # A ".." for each directory in $ac_dir_suffix. |
1484 | # A ".." for each directory in $ac_dir_suffix. |
1406 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1485 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1407 | case $ac_top_builddir_sub in |
1486 | case $ac_top_builddir_sub in |
1408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1487 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1488 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1410 | esac ;; |
1489 | esac ;; |
1411 | esac |
1490 | esac |
… | |
… | |
1429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1508 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1430 | esac |
1509 | esac |
1431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1510 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1432 | |
1511 | |
1433 | cd "$ac_dir" || { ac_status=$?; continue; } |
1512 | cd "$ac_dir" || { ac_status=$?; continue; } |
1434 | # Check for guested configure. |
1513 | # Check for configure.gnu first; this name is used for a wrapper for |
|
|
1514 | # Metaconfig's "Configure" on case-insensitive file systems. |
1435 | if test -f "$ac_srcdir/configure.gnu"; then |
1515 | if test -f "$ac_srcdir/configure.gnu"; then |
1436 | echo && |
1516 | echo && |
1437 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1438 | elif test -f "$ac_srcdir/configure"; then |
1518 | elif test -f "$ac_srcdir/configure"; then |
1439 | echo && |
1519 | echo && |
1440 | $SHELL "$ac_srcdir/configure" --help=recursive |
1520 | $SHELL "$ac_srcdir/configure" --help=recursive |
1441 | else |
1521 | else |
1442 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1522 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1443 | fi || ac_status=$? |
1523 | fi || ac_status=$? |
1444 | cd "$ac_pwd" || { ac_status=$?; break; } |
1524 | cd "$ac_pwd" || { ac_status=$?; break; } |
1445 | done |
1525 | done |
1446 | fi |
1526 | fi |
1447 | |
1527 | |
1448 | test -n "$ac_init_help" && exit $ac_status |
1528 | test -n "$ac_init_help" && exit $ac_status |
1449 | if $ac_init_version; then |
1529 | if $ac_init_version; then |
1450 | cat <<\_ACEOF |
1530 | cat <<\_ACEOF |
1451 | configure |
1531 | configure |
1452 | generated by GNU Autoconf 2.61 |
1532 | generated by GNU Autoconf 2.71 |
1453 | |
1533 | |
1454 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1534 | Copyright (C) 2021 Free Software Foundation, Inc. |
1455 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
|
1456 | This configure script is free software; the Free Software Foundation |
1535 | This configure script is free software; the Free Software Foundation |
1457 | gives unlimited permission to copy, distribute and modify it. |
1536 | gives unlimited permission to copy, distribute and modify it. |
1458 | _ACEOF |
1537 | _ACEOF |
1459 | exit |
1538 | exit |
1460 | fi |
1539 | fi |
|
|
1540 | |
|
|
1541 | ## ------------------------ ## |
|
|
1542 | ## Autoconf initialization. ## |
|
|
1543 | ## ------------------------ ## |
|
|
1544 | |
|
|
1545 | # ac_fn_c_try_compile LINENO |
|
|
1546 | # -------------------------- |
|
|
1547 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1548 | ac_fn_c_try_compile () |
|
|
1549 | { |
|
|
1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1551 | rm -f conftest.$ac_objext conftest.beam |
|
|
1552 | if { { ac_try="$ac_compile" |
|
|
1553 | case "(($ac_try" in |
|
|
1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1555 | *) ac_try_echo=$ac_try;; |
|
|
1556 | esac |
|
|
1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1558 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1559 | (eval "$ac_compile") 2>conftest.err |
|
|
1560 | ac_status=$? |
|
|
1561 | if test -s conftest.err; then |
|
|
1562 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1563 | cat conftest.er1 >&5 |
|
|
1564 | mv -f conftest.er1 conftest.err |
|
|
1565 | fi |
|
|
1566 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1567 | test $ac_status = 0; } && { |
|
|
1568 | test -z "$ac_c_werror_flag" || |
|
|
1569 | test ! -s conftest.err |
|
|
1570 | } && test -s conftest.$ac_objext |
|
|
1571 | then : |
|
|
1572 | ac_retval=0 |
|
|
1573 | else $as_nop |
|
|
1574 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1575 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1576 | |
|
|
1577 | ac_retval=1 |
|
|
1578 | fi |
|
|
1579 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1580 | as_fn_set_status $ac_retval |
|
|
1581 | |
|
|
1582 | } # ac_fn_c_try_compile |
|
|
1583 | |
|
|
1584 | # ac_fn_cxx_try_compile LINENO |
|
|
1585 | # ---------------------------- |
|
|
1586 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1587 | ac_fn_cxx_try_compile () |
|
|
1588 | { |
|
|
1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1590 | rm -f conftest.$ac_objext conftest.beam |
|
|
1591 | if { { ac_try="$ac_compile" |
|
|
1592 | case "(($ac_try" in |
|
|
1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1594 | *) ac_try_echo=$ac_try;; |
|
|
1595 | esac |
|
|
1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1597 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1598 | (eval "$ac_compile") 2>conftest.err |
|
|
1599 | ac_status=$? |
|
|
1600 | if test -s conftest.err; then |
|
|
1601 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1602 | cat conftest.er1 >&5 |
|
|
1603 | mv -f conftest.er1 conftest.err |
|
|
1604 | fi |
|
|
1605 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1606 | test $ac_status = 0; } && { |
|
|
1607 | test -z "$ac_cxx_werror_flag" || |
|
|
1608 | test ! -s conftest.err |
|
|
1609 | } && test -s conftest.$ac_objext |
|
|
1610 | then : |
|
|
1611 | ac_retval=0 |
|
|
1612 | else $as_nop |
|
|
1613 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1614 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1615 | |
|
|
1616 | ac_retval=1 |
|
|
1617 | fi |
|
|
1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1619 | as_fn_set_status $ac_retval |
|
|
1620 | |
|
|
1621 | } # ac_fn_cxx_try_compile |
|
|
1622 | |
|
|
1623 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1624 | # ------------------------------------------------------- |
|
|
1625 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1626 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1627 | ac_fn_c_check_header_compile () |
|
|
1628 | { |
|
|
1629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1631 | printf %s "checking for $2... " >&6; } |
|
|
1632 | if eval test \${$3+y} |
|
|
1633 | then : |
|
|
1634 | printf %s "(cached) " >&6 |
|
|
1635 | else $as_nop |
|
|
1636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1637 | /* end confdefs.h. */ |
|
|
1638 | $4 |
|
|
1639 | #include <$2> |
|
|
1640 | _ACEOF |
|
|
1641 | if ac_fn_c_try_compile "$LINENO" |
|
|
1642 | then : |
|
|
1643 | eval "$3=yes" |
|
|
1644 | else $as_nop |
|
|
1645 | eval "$3=no" |
|
|
1646 | fi |
|
|
1647 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1648 | fi |
|
|
1649 | eval ac_res=\$$3 |
|
|
1650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1651 | printf "%s\n" "$ac_res" >&6; } |
|
|
1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1653 | |
|
|
1654 | } # ac_fn_c_check_header_compile |
|
|
1655 | |
|
|
1656 | # ac_fn_cxx_try_link LINENO |
|
|
1657 | # ------------------------- |
|
|
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1659 | ac_fn_cxx_try_link () |
|
|
1660 | { |
|
|
1661 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1662 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
|
|
1663 | if { { ac_try="$ac_link" |
|
|
1664 | case "(($ac_try" in |
|
|
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1666 | *) ac_try_echo=$ac_try;; |
|
|
1667 | esac |
|
|
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1669 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1670 | (eval "$ac_link") 2>conftest.err |
|
|
1671 | ac_status=$? |
|
|
1672 | if test -s conftest.err; then |
|
|
1673 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1674 | cat conftest.er1 >&5 |
|
|
1675 | mv -f conftest.er1 conftest.err |
|
|
1676 | fi |
|
|
1677 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1678 | test $ac_status = 0; } && { |
|
|
1679 | test -z "$ac_cxx_werror_flag" || |
|
|
1680 | test ! -s conftest.err |
|
|
1681 | } && test -s conftest$ac_exeext && { |
|
|
1682 | test "$cross_compiling" = yes || |
|
|
1683 | test -x conftest$ac_exeext |
|
|
1684 | } |
|
|
1685 | then : |
|
|
1686 | ac_retval=0 |
|
|
1687 | else $as_nop |
|
|
1688 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1690 | |
|
|
1691 | ac_retval=1 |
|
|
1692 | fi |
|
|
1693 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
|
1694 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
|
1695 | # interfere with the next link command; also delete a directory that is |
|
|
1696 | # left behind by Apple's compiler. We do this before executing the actions. |
|
|
1697 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1698 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1699 | as_fn_set_status $ac_retval |
|
|
1700 | |
|
|
1701 | } # ac_fn_cxx_try_link |
|
|
1702 | |
|
|
1703 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1704 | # --------------------------------------------------------- |
|
|
1705 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1706 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1707 | ac_fn_cxx_check_header_compile () |
|
|
1708 | { |
|
|
1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1711 | printf %s "checking for $2... " >&6; } |
|
|
1712 | if eval test \${$3+y} |
|
|
1713 | then : |
|
|
1714 | printf %s "(cached) " >&6 |
|
|
1715 | else $as_nop |
|
|
1716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1717 | /* end confdefs.h. */ |
|
|
1718 | $4 |
|
|
1719 | #include <$2> |
|
|
1720 | _ACEOF |
|
|
1721 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1722 | then : |
|
|
1723 | eval "$3=yes" |
|
|
1724 | else $as_nop |
|
|
1725 | eval "$3=no" |
|
|
1726 | fi |
|
|
1727 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1728 | fi |
|
|
1729 | eval ac_res=\$$3 |
|
|
1730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1731 | printf "%s\n" "$ac_res" >&6; } |
|
|
1732 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1733 | |
|
|
1734 | } # ac_fn_cxx_check_header_compile |
|
|
1735 | |
|
|
1736 | # ac_fn_cxx_check_func LINENO FUNC VAR |
|
|
1737 | # ------------------------------------ |
|
|
1738 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
|
1739 | ac_fn_cxx_check_func () |
|
|
1740 | { |
|
|
1741 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1743 | printf %s "checking for $2... " >&6; } |
|
|
1744 | if eval test \${$3+y} |
|
|
1745 | then : |
|
|
1746 | printf %s "(cached) " >&6 |
|
|
1747 | else $as_nop |
|
|
1748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1749 | /* end confdefs.h. */ |
|
|
1750 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
|
1751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
1752 | #define $2 innocuous_$2 |
|
|
1753 | |
|
|
1754 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1755 | which can conflict with char $2 (); below. */ |
|
|
1756 | |
|
|
1757 | #include <limits.h> |
|
|
1758 | #undef $2 |
|
|
1759 | |
|
|
1760 | /* Override any GCC internal prototype to avoid an error. |
|
|
1761 | Use char because int might match the return type of a GCC |
|
|
1762 | builtin and then its argument prototype would still apply. */ |
|
|
1763 | #ifdef __cplusplus |
|
|
1764 | extern "C" |
|
|
1765 | #endif |
|
|
1766 | char $2 (); |
|
|
1767 | /* The GNU C library defines this for functions which it implements |
|
|
1768 | to always fail with ENOSYS. Some functions are actually named |
|
|
1769 | something starting with __ and the normal name is an alias. */ |
|
|
1770 | #if defined __stub_$2 || defined __stub___$2 |
|
|
1771 | choke me |
|
|
1772 | #endif |
|
|
1773 | |
|
|
1774 | int |
|
|
1775 | main (void) |
|
|
1776 | { |
|
|
1777 | return $2 (); |
|
|
1778 | ; |
|
|
1779 | return 0; |
|
|
1780 | } |
|
|
1781 | _ACEOF |
|
|
1782 | if ac_fn_cxx_try_link "$LINENO" |
|
|
1783 | then : |
|
|
1784 | eval "$3=yes" |
|
|
1785 | else $as_nop |
|
|
1786 | eval "$3=no" |
|
|
1787 | fi |
|
|
1788 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
1789 | conftest$ac_exeext conftest.$ac_ext |
|
|
1790 | fi |
|
|
1791 | eval ac_res=\$$3 |
|
|
1792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1793 | printf "%s\n" "$ac_res" >&6; } |
|
|
1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1795 | |
|
|
1796 | } # ac_fn_cxx_check_func |
|
|
1797 | |
|
|
1798 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
|
|
1799 | # --------------------------------------------- |
|
|
1800 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
|
|
1801 | # variable VAR accordingly. |
|
|
1802 | ac_fn_cxx_check_type () |
|
|
1803 | { |
|
|
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1806 | printf %s "checking for $2... " >&6; } |
|
|
1807 | if eval test \${$3+y} |
|
|
1808 | then : |
|
|
1809 | printf %s "(cached) " >&6 |
|
|
1810 | else $as_nop |
|
|
1811 | eval "$3=no" |
|
|
1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1813 | /* end confdefs.h. */ |
|
|
1814 | $4 |
|
|
1815 | int |
|
|
1816 | main (void) |
|
|
1817 | { |
|
|
1818 | if (sizeof ($2)) |
|
|
1819 | return 0; |
|
|
1820 | ; |
|
|
1821 | return 0; |
|
|
1822 | } |
|
|
1823 | _ACEOF |
|
|
1824 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1825 | then : |
|
|
1826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1827 | /* end confdefs.h. */ |
|
|
1828 | $4 |
|
|
1829 | int |
|
|
1830 | main (void) |
|
|
1831 | { |
|
|
1832 | if (sizeof (($2))) |
|
|
1833 | return 0; |
|
|
1834 | ; |
|
|
1835 | return 0; |
|
|
1836 | } |
|
|
1837 | _ACEOF |
|
|
1838 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1839 | then : |
|
|
1840 | |
|
|
1841 | else $as_nop |
|
|
1842 | eval "$3=yes" |
|
|
1843 | fi |
|
|
1844 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1845 | fi |
|
|
1846 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1847 | fi |
|
|
1848 | eval ac_res=\$$3 |
|
|
1849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1850 | printf "%s\n" "$ac_res" >&6; } |
|
|
1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1852 | |
|
|
1853 | } # ac_fn_cxx_check_type |
|
|
1854 | |
|
|
1855 | # ac_fn_cxx_try_cpp LINENO |
|
|
1856 | # ------------------------ |
|
|
1857 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
|
1858 | ac_fn_cxx_try_cpp () |
|
|
1859 | { |
|
|
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1861 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1862 | case "(($ac_try" in |
|
|
1863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1864 | *) ac_try_echo=$ac_try;; |
|
|
1865 | esac |
|
|
1866 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1867 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1868 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1869 | ac_status=$? |
|
|
1870 | if test -s conftest.err; then |
|
|
1871 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1872 | cat conftest.er1 >&5 |
|
|
1873 | mv -f conftest.er1 conftest.err |
|
|
1874 | fi |
|
|
1875 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1876 | test $ac_status = 0; } > conftest.i && { |
|
|
1877 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
1878 | test ! -s conftest.err |
|
|
1879 | } |
|
|
1880 | then : |
|
|
1881 | ac_retval=0 |
|
|
1882 | else $as_nop |
|
|
1883 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1884 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1885 | |
|
|
1886 | ac_retval=1 |
|
|
1887 | fi |
|
|
1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1889 | as_fn_set_status $ac_retval |
|
|
1890 | |
|
|
1891 | } # ac_fn_cxx_try_cpp |
|
|
1892 | |
|
|
1893 | # ac_fn_c_find_intX_t LINENO BITS VAR |
|
|
1894 | # ----------------------------------- |
|
|
1895 | # Finds a signed integer type with width BITS, setting cache variable VAR |
|
|
1896 | # accordingly. |
|
|
1897 | ac_fn_c_find_intX_t () |
|
|
1898 | { |
|
|
1899 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
|
|
1901 | printf %s "checking for int$2_t... " >&6; } |
|
|
1902 | if eval test \${$3+y} |
|
|
1903 | then : |
|
|
1904 | printf %s "(cached) " >&6 |
|
|
1905 | else $as_nop |
|
|
1906 | eval "$3=no" |
|
|
1907 | # Order is important - never check a type that is potentially smaller |
|
|
1908 | # than half of the expected target width. |
|
|
1909 | for ac_type in int$2_t 'int' 'long int' \ |
|
|
1910 | 'long long int' 'short int' 'signed char'; do |
|
|
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1912 | /* end confdefs.h. */ |
|
|
1913 | $ac_includes_default |
|
|
1914 | enum { N = $2 / 2 - 1 }; |
|
|
1915 | int |
|
|
1916 | main (void) |
|
|
1917 | { |
|
|
1918 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
|
|
1919 | test_array [0] = 0; |
|
|
1920 | return test_array [0]; |
|
|
1921 | |
|
|
1922 | ; |
|
|
1923 | return 0; |
|
|
1924 | } |
|
|
1925 | _ACEOF |
|
|
1926 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1927 | then : |
|
|
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1929 | /* end confdefs.h. */ |
|
|
1930 | $ac_includes_default |
|
|
1931 | enum { N = $2 / 2 - 1 }; |
|
|
1932 | int |
|
|
1933 | main (void) |
|
|
1934 | { |
|
|
1935 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
|
|
1936 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
|
|
1937 | test_array [0] = 0; |
|
|
1938 | return test_array [0]; |
|
|
1939 | |
|
|
1940 | ; |
|
|
1941 | return 0; |
|
|
1942 | } |
|
|
1943 | _ACEOF |
|
|
1944 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
1945 | then : |
|
|
1946 | |
|
|
1947 | else $as_nop |
|
|
1948 | case $ac_type in #( |
|
|
1949 | int$2_t) : |
|
|
1950 | eval "$3=yes" ;; #( |
|
|
1951 | *) : |
|
|
1952 | eval "$3=\$ac_type" ;; |
|
|
1953 | esac |
|
|
1954 | fi |
|
|
1955 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1956 | fi |
|
|
1957 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1958 | if eval test \"x\$"$3"\" = x"no" |
|
|
1959 | then : |
|
|
1960 | |
|
|
1961 | else $as_nop |
|
|
1962 | break |
|
|
1963 | fi |
|
|
1964 | done |
|
|
1965 | fi |
|
|
1966 | eval ac_res=\$$3 |
|
|
1967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1968 | printf "%s\n" "$ac_res" >&6; } |
|
|
1969 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1970 | |
|
|
1971 | } # ac_fn_c_find_intX_t |
|
|
1972 | |
|
|
1973 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
|
|
1974 | # ------------------------------------ |
|
|
1975 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
|
|
1976 | # accordingly. |
|
|
1977 | ac_fn_c_find_uintX_t () |
|
|
1978 | { |
|
|
1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
|
|
1981 | printf %s "checking for uint$2_t... " >&6; } |
|
|
1982 | if eval test \${$3+y} |
|
|
1983 | then : |
|
|
1984 | printf %s "(cached) " >&6 |
|
|
1985 | else $as_nop |
|
|
1986 | eval "$3=no" |
|
|
1987 | # Order is important - never check a type that is potentially smaller |
|
|
1988 | # than half of the expected target width. |
|
|
1989 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
|
|
1990 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
|
|
1991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1992 | /* end confdefs.h. */ |
|
|
1993 | $ac_includes_default |
|
|
1994 | int |
|
|
1995 | main (void) |
|
|
1996 | { |
|
|
1997 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
|
|
1998 | test_array [0] = 0; |
|
|
1999 | return test_array [0]; |
|
|
2000 | |
|
|
2001 | ; |
|
|
2002 | return 0; |
|
|
2003 | } |
|
|
2004 | _ACEOF |
|
|
2005 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
2006 | then : |
|
|
2007 | case $ac_type in #( |
|
|
2008 | uint$2_t) : |
|
|
2009 | eval "$3=yes" ;; #( |
|
|
2010 | *) : |
|
|
2011 | eval "$3=\$ac_type" ;; |
|
|
2012 | esac |
|
|
2013 | fi |
|
|
2014 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2015 | if eval test \"x\$"$3"\" = x"no" |
|
|
2016 | then : |
|
|
2017 | |
|
|
2018 | else $as_nop |
|
|
2019 | break |
|
|
2020 | fi |
|
|
2021 | done |
|
|
2022 | fi |
|
|
2023 | eval ac_res=\$$3 |
|
|
2024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
2025 | printf "%s\n" "$ac_res" >&6; } |
|
|
2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2027 | |
|
|
2028 | } # ac_fn_c_find_uintX_t |
|
|
2029 | |
|
|
2030 | # ac_fn_cxx_try_run LINENO |
|
|
2031 | # ------------------------ |
|
|
2032 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
|
|
2033 | # executables *can* be run. |
|
|
2034 | ac_fn_cxx_try_run () |
|
|
2035 | { |
|
|
2036 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
2037 | if { { ac_try="$ac_link" |
|
|
2038 | case "(($ac_try" in |
|
|
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2040 | *) ac_try_echo=$ac_try;; |
|
|
2041 | esac |
|
|
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2043 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2044 | (eval "$ac_link") 2>&5 |
|
|
2045 | ac_status=$? |
|
|
2046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2047 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
|
2048 | { { case "(($ac_try" in |
|
|
2049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2050 | *) ac_try_echo=$ac_try;; |
|
|
2051 | esac |
|
|
2052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2053 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2054 | (eval "$ac_try") 2>&5 |
|
|
2055 | ac_status=$? |
|
|
2056 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2057 | test $ac_status = 0; }; } |
|
|
2058 | then : |
|
|
2059 | ac_retval=0 |
|
|
2060 | else $as_nop |
|
|
2061 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
|
|
2062 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
2063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2064 | |
|
|
2065 | ac_retval=$ac_status |
|
|
2066 | fi |
|
|
2067 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
2069 | as_fn_set_status $ac_retval |
|
|
2070 | |
|
|
2071 | } # ac_fn_cxx_try_run |
|
|
2072 | ac_configure_args_raw= |
|
|
2073 | for ac_arg |
|
|
2074 | do |
|
|
2075 | case $ac_arg in |
|
|
2076 | *\'*) |
|
|
2077 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
2078 | esac |
|
|
2079 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
|
|
2080 | done |
|
|
2081 | |
|
|
2082 | case $ac_configure_args_raw in |
|
|
2083 | *$as_nl*) |
|
|
2084 | ac_safe_unquote= ;; |
|
|
2085 | *) |
|
|
2086 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
|
|
2087 | ac_unsafe_a="$ac_unsafe_z#~" |
|
|
2088 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
|
|
2089 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
|
|
2090 | esac |
|
|
2091 | |
1461 | cat >config.log <<_ACEOF |
2092 | cat >config.log <<_ACEOF |
1462 | This file contains any messages produced by compilers while |
2093 | This file contains any messages produced by compilers while |
1463 | running configure, to aid debugging if configure makes a mistake. |
2094 | running configure, to aid debugging if configure makes a mistake. |
1464 | |
2095 | |
1465 | It was created by $as_me, which was |
2096 | It was created by $as_me, which was |
1466 | generated by GNU Autoconf 2.61. Invocation command line was |
2097 | generated by GNU Autoconf 2.71. Invocation command line was |
1467 | |
2098 | |
1468 | $ $0 $@ |
2099 | $ $0$ac_configure_args_raw |
1469 | |
2100 | |
1470 | _ACEOF |
2101 | _ACEOF |
1471 | exec 5>>config.log |
2102 | exec 5>>config.log |
1472 | { |
2103 | { |
1473 | cat <<_ASUNAME |
2104 | cat <<_ASUNAME |
… | |
… | |
1496 | |
2127 | |
1497 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1498 | for as_dir in $PATH |
2129 | for as_dir in $PATH |
1499 | do |
2130 | do |
1500 | IFS=$as_save_IFS |
2131 | IFS=$as_save_IFS |
1501 | test -z "$as_dir" && as_dir=. |
2132 | case $as_dir in #((( |
1502 | echo "PATH: $as_dir" |
2133 | '') as_dir=./ ;; |
|
|
2134 | */) ;; |
|
|
2135 | *) as_dir=$as_dir/ ;; |
|
|
2136 | esac |
|
|
2137 | printf "%s\n" "PATH: $as_dir" |
1503 | done |
2138 | done |
1504 | IFS=$as_save_IFS |
2139 | IFS=$as_save_IFS |
1505 | |
2140 | |
1506 | } >&5 |
2141 | } >&5 |
1507 | |
2142 | |
1508 | cat >&5 <<_ACEOF |
2143 | cat >&5 <<_ACEOF |
… | |
… | |
1532 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2167 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1533 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2168 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1534 | | -silent | --silent | --silen | --sile | --sil) |
2169 | | -silent | --silent | --silen | --sile | --sil) |
1535 | continue ;; |
2170 | continue ;; |
1536 | *\'*) |
2171 | *\'*) |
1537 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2172 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1538 | esac |
2173 | esac |
1539 | case $ac_pass in |
2174 | case $ac_pass in |
1540 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
2175 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1541 | 2) |
2176 | 2) |
1542 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
2177 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1543 | if test $ac_must_keep_next = true; then |
2178 | if test $ac_must_keep_next = true; then |
1544 | ac_must_keep_next=false # Got value, back to normal. |
2179 | ac_must_keep_next=false # Got value, back to normal. |
1545 | else |
2180 | else |
1546 | case $ac_arg in |
2181 | case $ac_arg in |
1547 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
2182 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
… | |
… | |
1553 | esac |
2188 | esac |
1554 | ;; |
2189 | ;; |
1555 | -* ) ac_must_keep_next=true ;; |
2190 | -* ) ac_must_keep_next=true ;; |
1556 | esac |
2191 | esac |
1557 | fi |
2192 | fi |
1558 | ac_configure_args="$ac_configure_args '$ac_arg'" |
2193 | as_fn_append ac_configure_args " '$ac_arg'" |
1559 | ;; |
2194 | ;; |
1560 | esac |
2195 | esac |
1561 | done |
2196 | done |
1562 | done |
2197 | done |
1563 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
2198 | { ac_configure_args0=; unset ac_configure_args0;} |
1564 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
2199 | { ac_configure_args1=; unset ac_configure_args1;} |
1565 | |
2200 | |
1566 | # When interrupted or exit'd, cleanup temporary files, and complete |
2201 | # When interrupted or exit'd, cleanup temporary files, and complete |
1567 | # config.log. We remove comments because anyway the quotes in there |
2202 | # config.log. We remove comments because anyway the quotes in there |
1568 | # would cause problems or look ugly. |
2203 | # would cause problems or look ugly. |
1569 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2204 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1570 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2205 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1571 | trap 'exit_status=$? |
2206 | trap 'exit_status=$? |
|
|
2207 | # Sanitize IFS. |
|
|
2208 | IFS=" "" $as_nl" |
1572 | # Save into config.log some information that might help in debugging. |
2209 | # Save into config.log some information that might help in debugging. |
1573 | { |
2210 | { |
1574 | echo |
2211 | echo |
1575 | |
2212 | |
1576 | cat <<\_ASBOX |
2213 | printf "%s\n" "## ---------------- ## |
1577 | ## ---------------- ## |
|
|
1578 | ## Cache variables. ## |
2214 | ## Cache variables. ## |
1579 | ## ---------------- ## |
2215 | ## ---------------- ##" |
1580 | _ASBOX |
|
|
1581 | echo |
2216 | echo |
1582 | # The following way of writing the cache mishandles newlines in values, |
2217 | # The following way of writing the cache mishandles newlines in values, |
1583 | ( |
2218 | ( |
1584 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1585 | eval ac_val=\$$ac_var |
2220 | eval ac_val=\$$ac_var |
1586 | case $ac_val in #( |
2221 | case $ac_val in #( |
1587 | *${as_nl}*) |
2222 | *${as_nl}*) |
1588 | case $ac_var in #( |
2223 | case $ac_var in #( |
1589 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
2224 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1590 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
2225 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1591 | esac |
2226 | esac |
1592 | case $ac_var in #( |
2227 | case $ac_var in #( |
1593 | _ | IFS | as_nl) ;; #( |
2228 | _ | IFS | as_nl) ;; #( |
1594 | *) $as_unset $ac_var ;; |
2229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
2230 | *) { eval $ac_var=; unset $ac_var;} ;; |
1595 | esac ;; |
2231 | esac ;; |
1596 | esac |
2232 | esac |
1597 | done |
2233 | done |
1598 | (set) 2>&1 | |
2234 | (set) 2>&1 | |
1599 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2235 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
… | |
… | |
1608 | esac | |
2244 | esac | |
1609 | sort |
2245 | sort |
1610 | ) |
2246 | ) |
1611 | echo |
2247 | echo |
1612 | |
2248 | |
1613 | cat <<\_ASBOX |
2249 | printf "%s\n" "## ----------------- ## |
1614 | ## ----------------- ## |
|
|
1615 | ## Output variables. ## |
2250 | ## Output variables. ## |
1616 | ## ----------------- ## |
2251 | ## ----------------- ##" |
1617 | _ASBOX |
|
|
1618 | echo |
2252 | echo |
1619 | for ac_var in $ac_subst_vars |
2253 | for ac_var in $ac_subst_vars |
1620 | do |
2254 | do |
1621 | eval ac_val=\$$ac_var |
2255 | eval ac_val=\$$ac_var |
1622 | case $ac_val in |
2256 | case $ac_val in |
1623 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2257 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1624 | esac |
2258 | esac |
1625 | echo "$ac_var='\''$ac_val'\''" |
2259 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1626 | done | sort |
2260 | done | sort |
1627 | echo |
2261 | echo |
1628 | |
2262 | |
1629 | if test -n "$ac_subst_files"; then |
2263 | if test -n "$ac_subst_files"; then |
1630 | cat <<\_ASBOX |
2264 | printf "%s\n" "## ------------------- ## |
1631 | ## ------------------- ## |
|
|
1632 | ## File substitutions. ## |
2265 | ## File substitutions. ## |
1633 | ## ------------------- ## |
2266 | ## ------------------- ##" |
1634 | _ASBOX |
|
|
1635 | echo |
2267 | echo |
1636 | for ac_var in $ac_subst_files |
2268 | for ac_var in $ac_subst_files |
1637 | do |
2269 | do |
1638 | eval ac_val=\$$ac_var |
2270 | eval ac_val=\$$ac_var |
1639 | case $ac_val in |
2271 | case $ac_val in |
1640 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2272 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1641 | esac |
2273 | esac |
1642 | echo "$ac_var='\''$ac_val'\''" |
2274 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1643 | done | sort |
2275 | done | sort |
1644 | echo |
2276 | echo |
1645 | fi |
2277 | fi |
1646 | |
2278 | |
1647 | if test -s confdefs.h; then |
2279 | if test -s confdefs.h; then |
1648 | cat <<\_ASBOX |
2280 | printf "%s\n" "## ----------- ## |
1649 | ## ----------- ## |
|
|
1650 | ## confdefs.h. ## |
2281 | ## confdefs.h. ## |
1651 | ## ----------- ## |
2282 | ## ----------- ##" |
1652 | _ASBOX |
|
|
1653 | echo |
2283 | echo |
1654 | cat confdefs.h |
2284 | cat confdefs.h |
1655 | echo |
2285 | echo |
1656 | fi |
2286 | fi |
1657 | test "$ac_signal" != 0 && |
2287 | test "$ac_signal" != 0 && |
1658 | echo "$as_me: caught signal $ac_signal" |
2288 | printf "%s\n" "$as_me: caught signal $ac_signal" |
1659 | echo "$as_me: exit $exit_status" |
2289 | printf "%s\n" "$as_me: exit $exit_status" |
1660 | } >&5 |
2290 | } >&5 |
1661 | rm -f core *.core core.conftest.* && |
2291 | rm -f core *.core core.conftest.* && |
1662 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2292 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1663 | exit $exit_status |
2293 | exit $exit_status |
1664 | ' 0 |
2294 | ' 0 |
1665 | for ac_signal in 1 2 13 15; do |
2295 | for ac_signal in 1 2 13 15; do |
1666 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
2296 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1667 | done |
2297 | done |
1668 | ac_signal=0 |
2298 | ac_signal=0 |
1669 | |
2299 | |
1670 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1671 | rm -f -r conftest* confdefs.h |
2301 | rm -f -r conftest* confdefs.h |
1672 | |
2302 | |
|
|
2303 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
|
|
2304 | |
1673 | # Predefined preprocessor variables. |
2305 | # Predefined preprocessor variables. |
1674 | |
2306 | |
1675 | cat >>confdefs.h <<_ACEOF |
2307 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1676 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
1677 | _ACEOF |
|
|
1678 | |
2308 | |
|
|
2309 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1679 | |
2310 | |
1680 | cat >>confdefs.h <<_ACEOF |
2311 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1681 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
1682 | _ACEOF |
|
|
1683 | |
2312 | |
|
|
2313 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1684 | |
2314 | |
1685 | cat >>confdefs.h <<_ACEOF |
2315 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1686 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
1687 | _ACEOF |
|
|
1688 | |
2316 | |
1689 | |
2317 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1690 | cat >>confdefs.h <<_ACEOF |
|
|
1691 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
1692 | _ACEOF |
|
|
1693 | |
|
|
1694 | |
|
|
1695 | cat >>confdefs.h <<_ACEOF |
|
|
1696 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
1697 | _ACEOF |
|
|
1698 | |
2318 | |
1699 | |
2319 | |
1700 | # Let the site file select an alternate cache file if it wants to. |
2320 | # Let the site file select an alternate cache file if it wants to. |
1701 | # Prefer explicitly selected file to automatically selected ones. |
2321 | # Prefer an explicitly selected file to automatically selected ones. |
1702 | if test -n "$CONFIG_SITE"; then |
2322 | if test -n "$CONFIG_SITE"; then |
1703 | set x "$CONFIG_SITE" |
2323 | ac_site_files="$CONFIG_SITE" |
1704 | elif test "x$prefix" != xNONE; then |
2324 | elif test "x$prefix" != xNONE; then |
1705 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
2325 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1706 | else |
2326 | else |
1707 | set x "$ac_default_prefix/share/config.site" \ |
2327 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1708 | "$ac_default_prefix/etc/config.site" |
|
|
1709 | fi |
2328 | fi |
1710 | shift |
2329 | |
1711 | for ac_site_file |
2330 | for ac_site_file in $ac_site_files |
1712 | do |
2331 | do |
1713 | if test -r "$ac_site_file"; then |
2332 | case $ac_site_file in #( |
|
|
2333 | */*) : |
|
|
2334 | ;; #( |
|
|
2335 | *) : |
|
|
2336 | ac_site_file=./$ac_site_file ;; |
|
|
2337 | esac |
|
|
2338 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1714 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
2339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1715 | echo "$as_me: loading site script $ac_site_file" >&6;} |
2340 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1716 | sed 's/^/| /' "$ac_site_file" >&5 |
2341 | sed 's/^/| /' "$ac_site_file" >&5 |
1717 | . "$ac_site_file" |
2342 | . "$ac_site_file" \ |
|
|
2343 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2344 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2345 | as_fn_error $? "failed to load site script $ac_site_file |
|
|
2346 | See \`config.log' for more details" "$LINENO" 5; } |
1718 | fi |
2347 | fi |
1719 | done |
2348 | done |
1720 | |
2349 | |
1721 | if test -r "$cache_file"; then |
2350 | if test -r "$cache_file"; then |
1722 | # Some versions of bash will fail to source /dev/null (special |
2351 | # Some versions of bash will fail to source /dev/null (special files |
1723 | # files actually), so we avoid doing that. |
2352 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1724 | if test -f "$cache_file"; then |
2353 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1725 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
2354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1726 | echo "$as_me: loading cache $cache_file" >&6;} |
2355 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1727 | case $cache_file in |
2356 | case $cache_file in |
1728 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2357 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1729 | *) . "./$cache_file";; |
2358 | *) . "./$cache_file";; |
1730 | esac |
2359 | esac |
1731 | fi |
2360 | fi |
1732 | else |
2361 | else |
1733 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
2362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1734 | echo "$as_me: creating cache $cache_file" >&6;} |
2363 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1735 | >$cache_file |
2364 | >$cache_file |
|
|
2365 | fi |
|
|
2366 | |
|
|
2367 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
2368 | ac_c_conftest_c89_globals=' |
|
|
2369 | /* Does the compiler advertise C89 conformance? |
|
|
2370 | Do not test the value of __STDC__, because some compilers set it to 0 |
|
|
2371 | while being otherwise adequately conformant. */ |
|
|
2372 | #if !defined __STDC__ |
|
|
2373 | # error "Compiler does not advertise C89 conformance" |
|
|
2374 | #endif |
|
|
2375 | |
|
|
2376 | #include <stddef.h> |
|
|
2377 | #include <stdarg.h> |
|
|
2378 | struct stat; |
|
|
2379 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
2380 | struct buf { int x; }; |
|
|
2381 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2382 | static char *e (p, i) |
|
|
2383 | char **p; |
|
|
2384 | int i; |
|
|
2385 | { |
|
|
2386 | return p[i]; |
|
|
2387 | } |
|
|
2388 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2389 | { |
|
|
2390 | char *s; |
|
|
2391 | va_list v; |
|
|
2392 | va_start (v,p); |
|
|
2393 | s = g (p, va_arg (v,int)); |
|
|
2394 | va_end (v); |
|
|
2395 | return s; |
|
|
2396 | } |
|
|
2397 | |
|
|
2398 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2399 | function prototypes and stuff, but not \xHH hex character constants. |
|
|
2400 | These do not provoke an error unfortunately, instead are silently treated |
|
|
2401 | as an "x". The following induces an error, until -std is added to get |
|
|
2402 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
|
|
2403 | array size at least. It is necessary to write \x00 == 0 to get something |
|
|
2404 | that is true only with -std. */ |
|
|
2405 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
|
|
2406 | |
|
|
2407 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2408 | inside strings and character constants. */ |
|
|
2409 | #define FOO(x) '\''x'\'' |
|
|
2410 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
2411 | |
|
|
2412 | int test (int i, double x); |
|
|
2413 | struct s1 {int (*f) (int a);}; |
|
|
2414 | struct s2 {int (*f) (double a);}; |
|
|
2415 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
|
|
2416 | int, int);' |
|
|
2417 | |
|
|
2418 | # Test code for whether the C compiler supports C89 (body of main). |
|
|
2419 | ac_c_conftest_c89_main=' |
|
|
2420 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
|
|
2421 | ' |
|
|
2422 | |
|
|
2423 | # Test code for whether the C compiler supports C99 (global declarations) |
|
|
2424 | ac_c_conftest_c99_globals=' |
|
|
2425 | // Does the compiler advertise C99 conformance? |
|
|
2426 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
|
|
2427 | # error "Compiler does not advertise C99 conformance" |
|
|
2428 | #endif |
|
|
2429 | |
|
|
2430 | #include <stdbool.h> |
|
|
2431 | extern int puts (const char *); |
|
|
2432 | extern int printf (const char *, ...); |
|
|
2433 | extern int dprintf (int, const char *, ...); |
|
|
2434 | extern void *malloc (size_t); |
|
|
2435 | |
|
|
2436 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
|
|
2437 | // dprintf is used instead of fprintf to avoid needing to declare |
|
|
2438 | // FILE and stderr. |
|
|
2439 | #define debug(...) dprintf (2, __VA_ARGS__) |
|
|
2440 | #define showlist(...) puts (#__VA_ARGS__) |
|
|
2441 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
|
|
2442 | static void |
|
|
2443 | test_varargs_macros (void) |
|
|
2444 | { |
|
|
2445 | int x = 1234; |
|
|
2446 | int y = 5678; |
|
|
2447 | debug ("Flag"); |
|
|
2448 | debug ("X = %d\n", x); |
|
|
2449 | showlist (The first, second, and third items.); |
|
|
2450 | report (x>y, "x is %d but y is %d", x, y); |
|
|
2451 | } |
|
|
2452 | |
|
|
2453 | // Check long long types. |
|
|
2454 | #define BIG64 18446744073709551615ull |
|
|
2455 | #define BIG32 4294967295ul |
|
|
2456 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
|
|
2457 | #if !BIG_OK |
|
|
2458 | #error "your preprocessor is broken" |
|
|
2459 | #endif |
|
|
2460 | #if BIG_OK |
|
|
2461 | #else |
|
|
2462 | #error "your preprocessor is broken" |
|
|
2463 | #endif |
|
|
2464 | static long long int bignum = -9223372036854775807LL; |
|
|
2465 | static unsigned long long int ubignum = BIG64; |
|
|
2466 | |
|
|
2467 | struct incomplete_array |
|
|
2468 | { |
|
|
2469 | int datasize; |
|
|
2470 | double data[]; |
|
|
2471 | }; |
|
|
2472 | |
|
|
2473 | struct named_init { |
|
|
2474 | int number; |
|
|
2475 | const wchar_t *name; |
|
|
2476 | double average; |
|
|
2477 | }; |
|
|
2478 | |
|
|
2479 | typedef const char *ccp; |
|
|
2480 | |
|
|
2481 | static inline int |
|
|
2482 | test_restrict (ccp restrict text) |
|
|
2483 | { |
|
|
2484 | // See if C++-style comments work. |
|
|
2485 | // Iterate through items via the restricted pointer. |
|
|
2486 | // Also check for declarations in for loops. |
|
|
2487 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
|
|
2488 | continue; |
|
|
2489 | return 0; |
|
|
2490 | } |
|
|
2491 | |
|
|
2492 | // Check varargs and va_copy. |
|
|
2493 | static bool |
|
|
2494 | test_varargs (const char *format, ...) |
|
|
2495 | { |
|
|
2496 | va_list args; |
|
|
2497 | va_start (args, format); |
|
|
2498 | va_list args_copy; |
|
|
2499 | va_copy (args_copy, args); |
|
|
2500 | |
|
|
2501 | const char *str = ""; |
|
|
2502 | int number = 0; |
|
|
2503 | float fnumber = 0; |
|
|
2504 | |
|
|
2505 | while (*format) |
|
|
2506 | { |
|
|
2507 | switch (*format++) |
|
|
2508 | { |
|
|
2509 | case '\''s'\'': // string |
|
|
2510 | str = va_arg (args_copy, const char *); |
|
|
2511 | break; |
|
|
2512 | case '\''d'\'': // int |
|
|
2513 | number = va_arg (args_copy, int); |
|
|
2514 | break; |
|
|
2515 | case '\''f'\'': // float |
|
|
2516 | fnumber = va_arg (args_copy, double); |
|
|
2517 | break; |
|
|
2518 | default: |
|
|
2519 | break; |
|
|
2520 | } |
|
|
2521 | } |
|
|
2522 | va_end (args_copy); |
|
|
2523 | va_end (args); |
|
|
2524 | |
|
|
2525 | return *str && number && fnumber; |
|
|
2526 | } |
|
|
2527 | ' |
|
|
2528 | |
|
|
2529 | # Test code for whether the C compiler supports C99 (body of main). |
|
|
2530 | ac_c_conftest_c99_main=' |
|
|
2531 | // Check bool. |
|
|
2532 | _Bool success = false; |
|
|
2533 | success |= (argc != 0); |
|
|
2534 | |
|
|
2535 | // Check restrict. |
|
|
2536 | if (test_restrict ("String literal") == 0) |
|
|
2537 | success = true; |
|
|
2538 | char *restrict newvar = "Another string"; |
|
|
2539 | |
|
|
2540 | // Check varargs. |
|
|
2541 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
|
|
2542 | test_varargs_macros (); |
|
|
2543 | |
|
|
2544 | // Check flexible array members. |
|
|
2545 | struct incomplete_array *ia = |
|
|
2546 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
|
|
2547 | ia->datasize = 10; |
|
|
2548 | for (int i = 0; i < ia->datasize; ++i) |
|
|
2549 | ia->data[i] = i * 1.234; |
|
|
2550 | |
|
|
2551 | // Check named initializers. |
|
|
2552 | struct named_init ni = { |
|
|
2553 | .number = 34, |
|
|
2554 | .name = L"Test wide string", |
|
|
2555 | .average = 543.34343, |
|
|
2556 | }; |
|
|
2557 | |
|
|
2558 | ni.number = 58; |
|
|
2559 | |
|
|
2560 | int dynamic_array[ni.number]; |
|
|
2561 | dynamic_array[0] = argv[0][0]; |
|
|
2562 | dynamic_array[ni.number - 1] = 543; |
|
|
2563 | |
|
|
2564 | // work around unused variable warnings |
|
|
2565 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
|
|
2566 | || dynamic_array[ni.number - 1] != 543); |
|
|
2567 | ' |
|
|
2568 | |
|
|
2569 | # Test code for whether the C compiler supports C11 (global declarations) |
|
|
2570 | ac_c_conftest_c11_globals=' |
|
|
2571 | // Does the compiler advertise C11 conformance? |
|
|
2572 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
|
|
2573 | # error "Compiler does not advertise C11 conformance" |
|
|
2574 | #endif |
|
|
2575 | |
|
|
2576 | // Check _Alignas. |
|
|
2577 | char _Alignas (double) aligned_as_double; |
|
|
2578 | char _Alignas (0) no_special_alignment; |
|
|
2579 | extern char aligned_as_int; |
|
|
2580 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2581 | |
|
|
2582 | // Check _Alignof. |
|
|
2583 | enum |
|
|
2584 | { |
|
|
2585 | int_alignment = _Alignof (int), |
|
|
2586 | int_array_alignment = _Alignof (int[100]), |
|
|
2587 | char_alignment = _Alignof (char) |
|
|
2588 | }; |
|
|
2589 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
|
|
2590 | |
|
|
2591 | // Check _Noreturn. |
|
|
2592 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2593 | |
|
|
2594 | // Check _Static_assert. |
|
|
2595 | struct test_static_assert |
|
|
2596 | { |
|
|
2597 | int x; |
|
|
2598 | _Static_assert (sizeof (int) <= sizeof (long int), |
|
|
2599 | "_Static_assert does not work in struct"); |
|
|
2600 | long int y; |
|
|
2601 | }; |
|
|
2602 | |
|
|
2603 | // Check UTF-8 literals. |
|
|
2604 | #define u8 syntax error! |
|
|
2605 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2606 | |
|
|
2607 | // Check duplicate typedefs. |
|
|
2608 | typedef long *long_ptr; |
|
|
2609 | typedef long int *long_ptr; |
|
|
2610 | typedef long_ptr long_ptr; |
|
|
2611 | |
|
|
2612 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2613 | struct anonymous |
|
|
2614 | { |
|
|
2615 | union { |
|
|
2616 | struct { int i; int j; }; |
|
|
2617 | struct { int k; long int l; } w; |
|
|
2618 | }; |
|
|
2619 | int m; |
|
|
2620 | } v1; |
|
|
2621 | ' |
|
|
2622 | |
|
|
2623 | # Test code for whether the C compiler supports C11 (body of main). |
|
|
2624 | ac_c_conftest_c11_main=' |
|
|
2625 | _Static_assert ((offsetof (struct anonymous, i) |
|
|
2626 | == offsetof (struct anonymous, w.k)), |
|
|
2627 | "Anonymous union alignment botch"); |
|
|
2628 | v1.i = 2; |
|
|
2629 | v1.w.k = 5; |
|
|
2630 | ok |= v1.i != 5; |
|
|
2631 | ' |
|
|
2632 | |
|
|
2633 | # Test code for whether the C compiler supports C11 (complete). |
|
|
2634 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2635 | ${ac_c_conftest_c99_globals} |
|
|
2636 | ${ac_c_conftest_c11_globals} |
|
|
2637 | |
|
|
2638 | int |
|
|
2639 | main (int argc, char **argv) |
|
|
2640 | { |
|
|
2641 | int ok = 0; |
|
|
2642 | ${ac_c_conftest_c89_main} |
|
|
2643 | ${ac_c_conftest_c99_main} |
|
|
2644 | ${ac_c_conftest_c11_main} |
|
|
2645 | return ok; |
|
|
2646 | } |
|
|
2647 | " |
|
|
2648 | |
|
|
2649 | # Test code for whether the C compiler supports C99 (complete). |
|
|
2650 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2651 | ${ac_c_conftest_c99_globals} |
|
|
2652 | |
|
|
2653 | int |
|
|
2654 | main (int argc, char **argv) |
|
|
2655 | { |
|
|
2656 | int ok = 0; |
|
|
2657 | ${ac_c_conftest_c89_main} |
|
|
2658 | ${ac_c_conftest_c99_main} |
|
|
2659 | return ok; |
|
|
2660 | } |
|
|
2661 | " |
|
|
2662 | |
|
|
2663 | # Test code for whether the C compiler supports C89 (complete). |
|
|
2664 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2665 | |
|
|
2666 | int |
|
|
2667 | main (int argc, char **argv) |
|
|
2668 | { |
|
|
2669 | int ok = 0; |
|
|
2670 | ${ac_c_conftest_c89_main} |
|
|
2671 | return ok; |
|
|
2672 | } |
|
|
2673 | " |
|
|
2674 | |
|
|
2675 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
|
|
2676 | ac_cxx_conftest_cxx98_globals=' |
|
|
2677 | // Does the compiler advertise C++98 conformance? |
|
|
2678 | #if !defined __cplusplus || __cplusplus < 199711L |
|
|
2679 | # error "Compiler does not advertise C++98 conformance" |
|
|
2680 | #endif |
|
|
2681 | |
|
|
2682 | // These inclusions are to reject old compilers that |
|
|
2683 | // lack the unsuffixed header files. |
|
|
2684 | #include <cstdlib> |
|
|
2685 | #include <exception> |
|
|
2686 | |
|
|
2687 | // <cassert> and <cstring> are *not* freestanding headers in C++98. |
|
|
2688 | extern void assert (int); |
|
|
2689 | namespace std { |
|
|
2690 | extern int strcmp (const char *, const char *); |
|
|
2691 | } |
|
|
2692 | |
|
|
2693 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". |
|
|
2694 | using std::exception; |
|
|
2695 | using std::strcmp; |
|
|
2696 | |
|
|
2697 | namespace { |
|
|
2698 | |
|
|
2699 | void test_exception_syntax() |
|
|
2700 | { |
|
|
2701 | try { |
|
|
2702 | throw "test"; |
|
|
2703 | } catch (const char *s) { |
|
|
2704 | // Extra parentheses suppress a warning when building autoconf itself, |
|
|
2705 | // due to lint rules shared with more typical C programs. |
|
|
2706 | assert (!(strcmp) (s, "test")); |
|
|
2707 | } |
|
|
2708 | } |
|
|
2709 | |
|
|
2710 | template <typename T> struct test_template |
|
|
2711 | { |
|
|
2712 | T const val; |
|
|
2713 | explicit test_template(T t) : val(t) {} |
|
|
2714 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
|
|
2715 | }; |
|
|
2716 | |
|
|
2717 | } // anonymous namespace |
|
|
2718 | ' |
|
|
2719 | |
|
|
2720 | # Test code for whether the C++ compiler supports C++98 (body of main) |
|
|
2721 | ac_cxx_conftest_cxx98_main=' |
|
|
2722 | assert (argc); |
|
|
2723 | assert (! argv[0]); |
|
|
2724 | { |
|
|
2725 | test_exception_syntax (); |
|
|
2726 | test_template<double> tt (2.0); |
|
|
2727 | assert (tt.add (4) == 6.0); |
|
|
2728 | assert (true && !false); |
|
|
2729 | } |
|
|
2730 | ' |
|
|
2731 | |
|
|
2732 | # Test code for whether the C++ compiler supports C++11 (global declarations) |
|
|
2733 | ac_cxx_conftest_cxx11_globals=' |
|
|
2734 | // Does the compiler advertise C++ 2011 conformance? |
|
|
2735 | #if !defined __cplusplus || __cplusplus < 201103L |
|
|
2736 | # error "Compiler does not advertise C++11 conformance" |
|
|
2737 | #endif |
|
|
2738 | |
|
|
2739 | namespace cxx11test |
|
|
2740 | { |
|
|
2741 | constexpr int get_val() { return 20; } |
|
|
2742 | |
|
|
2743 | struct testinit |
|
|
2744 | { |
|
|
2745 | int i; |
|
|
2746 | double d; |
|
|
2747 | }; |
|
|
2748 | |
|
|
2749 | class delegate |
|
|
2750 | { |
|
|
2751 | public: |
|
|
2752 | delegate(int n) : n(n) {} |
|
|
2753 | delegate(): delegate(2354) {} |
|
|
2754 | |
|
|
2755 | virtual int getval() { return this->n; }; |
|
|
2756 | protected: |
|
|
2757 | int n; |
|
|
2758 | }; |
|
|
2759 | |
|
|
2760 | class overridden : public delegate |
|
|
2761 | { |
|
|
2762 | public: |
|
|
2763 | overridden(int n): delegate(n) {} |
|
|
2764 | virtual int getval() override final { return this->n * 2; } |
|
|
2765 | }; |
|
|
2766 | |
|
|
2767 | class nocopy |
|
|
2768 | { |
|
|
2769 | public: |
|
|
2770 | nocopy(int i): i(i) {} |
|
|
2771 | nocopy() = default; |
|
|
2772 | nocopy(const nocopy&) = delete; |
|
|
2773 | nocopy & operator=(const nocopy&) = delete; |
|
|
2774 | private: |
|
|
2775 | int i; |
|
|
2776 | }; |
|
|
2777 | |
|
|
2778 | // for testing lambda expressions |
|
|
2779 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
|
|
2780 | { |
|
|
2781 | return f(v); |
|
|
2782 | } |
|
|
2783 | |
|
|
2784 | // for testing variadic templates and trailing return types |
|
|
2785 | template <typename V> auto sum(V first) -> V |
|
|
2786 | { |
|
|
2787 | return first; |
|
|
2788 | } |
|
|
2789 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
|
|
2790 | { |
|
|
2791 | return first + sum(rest...); |
|
|
2792 | } |
|
|
2793 | } |
|
|
2794 | ' |
|
|
2795 | |
|
|
2796 | # Test code for whether the C++ compiler supports C++11 (body of main) |
|
|
2797 | ac_cxx_conftest_cxx11_main=' |
|
|
2798 | { |
|
|
2799 | // Test auto and decltype |
|
|
2800 | auto a1 = 6538; |
|
|
2801 | auto a2 = 48573953.4; |
|
|
2802 | auto a3 = "String literal"; |
|
|
2803 | |
|
|
2804 | int total = 0; |
|
|
2805 | for (auto i = a3; *i; ++i) { total += *i; } |
|
|
2806 | |
|
|
2807 | decltype(a2) a4 = 34895.034; |
|
|
2808 | } |
|
|
2809 | { |
|
|
2810 | // Test constexpr |
|
|
2811 | short sa[cxx11test::get_val()] = { 0 }; |
|
|
2812 | } |
|
|
2813 | { |
|
|
2814 | // Test initializer lists |
|
|
2815 | cxx11test::testinit il = { 4323, 435234.23544 }; |
|
|
2816 | } |
|
|
2817 | { |
|
|
2818 | // Test range-based for |
|
|
2819 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
|
|
2820 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
|
|
2821 | for (auto &x : array) { x += 23; } |
|
|
2822 | } |
|
|
2823 | { |
|
|
2824 | // Test lambda expressions |
|
|
2825 | using cxx11test::eval; |
|
|
2826 | assert (eval ([](int x) { return x*2; }, 21) == 42); |
|
|
2827 | double d = 2.0; |
|
|
2828 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
|
|
2829 | assert (d == 5.0); |
|
|
2830 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
|
|
2831 | assert (d == 5.0); |
|
|
2832 | } |
|
|
2833 | { |
|
|
2834 | // Test use of variadic templates |
|
|
2835 | using cxx11test::sum; |
|
|
2836 | auto a = sum(1); |
|
|
2837 | auto b = sum(1, 2); |
|
|
2838 | auto c = sum(1.0, 2.0, 3.0); |
|
|
2839 | } |
|
|
2840 | { |
|
|
2841 | // Test constructor delegation |
|
|
2842 | cxx11test::delegate d1; |
|
|
2843 | cxx11test::delegate d2(); |
|
|
2844 | cxx11test::delegate d3(45); |
|
|
2845 | } |
|
|
2846 | { |
|
|
2847 | // Test override and final |
|
|
2848 | cxx11test::overridden o1(55464); |
|
|
2849 | } |
|
|
2850 | { |
|
|
2851 | // Test nullptr |
|
|
2852 | char *c = nullptr; |
|
|
2853 | } |
|
|
2854 | { |
|
|
2855 | // Test template brackets |
|
|
2856 | test_template<::test_template<int>> v(test_template<int>(12)); |
|
|
2857 | } |
|
|
2858 | { |
|
|
2859 | // Unicode literals |
|
|
2860 | char const *utf8 = u8"UTF-8 string \u2500"; |
|
|
2861 | char16_t const *utf16 = u"UTF-8 string \u2500"; |
|
|
2862 | char32_t const *utf32 = U"UTF-32 string \u2500"; |
|
|
2863 | } |
|
|
2864 | ' |
|
|
2865 | |
|
|
2866 | # Test code for whether the C compiler supports C++11 (complete). |
|
|
2867 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2868 | ${ac_cxx_conftest_cxx11_globals} |
|
|
2869 | |
|
|
2870 | int |
|
|
2871 | main (int argc, char **argv) |
|
|
2872 | { |
|
|
2873 | int ok = 0; |
|
|
2874 | ${ac_cxx_conftest_cxx98_main} |
|
|
2875 | ${ac_cxx_conftest_cxx11_main} |
|
|
2876 | return ok; |
|
|
2877 | } |
|
|
2878 | " |
|
|
2879 | |
|
|
2880 | # Test code for whether the C compiler supports C++98 (complete). |
|
|
2881 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
|
|
2882 | int |
|
|
2883 | main (int argc, char **argv) |
|
|
2884 | { |
|
|
2885 | int ok = 0; |
|
|
2886 | ${ac_cxx_conftest_cxx98_main} |
|
|
2887 | return ok; |
|
|
2888 | } |
|
|
2889 | " |
|
|
2890 | |
|
|
2891 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
2892 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2893 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2894 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2895 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2896 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2897 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2898 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2899 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2900 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
|
|
2901 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
|
|
2902 | |
|
|
2903 | # Auxiliary files required by this configure script. |
|
|
2904 | ac_aux_files="install-sh" |
|
|
2905 | |
|
|
2906 | # Locations in which to look for auxiliary files. |
|
|
2907 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
|
|
2908 | |
|
|
2909 | # Search for a directory containing all of the required auxiliary files, |
|
|
2910 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
|
|
2911 | # If we don't find one directory that contains all the files we need, |
|
|
2912 | # we report the set of missing files from the *first* directory in |
|
|
2913 | # $ac_aux_dir_candidates and give up. |
|
|
2914 | ac_missing_aux_files="" |
|
|
2915 | ac_first_candidate=: |
|
|
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
|
|
2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2918 | as_found=false |
|
|
2919 | for as_dir in $ac_aux_dir_candidates |
|
|
2920 | do |
|
|
2921 | IFS=$as_save_IFS |
|
|
2922 | case $as_dir in #((( |
|
|
2923 | '') as_dir=./ ;; |
|
|
2924 | */) ;; |
|
|
2925 | *) as_dir=$as_dir/ ;; |
|
|
2926 | esac |
|
|
2927 | as_found=: |
|
|
2928 | |
|
|
2929 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
|
|
2930 | ac_aux_dir_found=yes |
|
|
2931 | ac_install_sh= |
|
|
2932 | for ac_aux in $ac_aux_files |
|
|
2933 | do |
|
|
2934 | # As a special case, if "install-sh" is required, that requirement |
|
|
2935 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
|
|
2936 | # and $ac_install_sh is set appropriately for whichever one is found. |
|
|
2937 | if test x"$ac_aux" = x"install-sh" |
|
|
2938 | then |
|
|
2939 | if test -f "${as_dir}install-sh"; then |
|
|
2940 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
|
|
2941 | ac_install_sh="${as_dir}install-sh -c" |
|
|
2942 | elif test -f "${as_dir}install.sh"; then |
|
|
2943 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
|
|
2944 | ac_install_sh="${as_dir}install.sh -c" |
|
|
2945 | elif test -f "${as_dir}shtool"; then |
|
|
2946 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
|
|
2947 | ac_install_sh="${as_dir}shtool install -c" |
|
|
2948 | else |
|
|
2949 | ac_aux_dir_found=no |
|
|
2950 | if $ac_first_candidate; then |
|
|
2951 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
|
|
2952 | else |
|
|
2953 | break |
|
|
2954 | fi |
|
|
2955 | fi |
|
|
2956 | else |
|
|
2957 | if test -f "${as_dir}${ac_aux}"; then |
|
|
2958 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
|
|
2959 | else |
|
|
2960 | ac_aux_dir_found=no |
|
|
2961 | if $ac_first_candidate; then |
|
|
2962 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
|
|
2963 | else |
|
|
2964 | break |
|
|
2965 | fi |
|
|
2966 | fi |
|
|
2967 | fi |
|
|
2968 | done |
|
|
2969 | if test "$ac_aux_dir_found" = yes; then |
|
|
2970 | ac_aux_dir="$as_dir" |
|
|
2971 | break |
|
|
2972 | fi |
|
|
2973 | ac_first_candidate=false |
|
|
2974 | |
|
|
2975 | as_found=false |
|
|
2976 | done |
|
|
2977 | IFS=$as_save_IFS |
|
|
2978 | if $as_found |
|
|
2979 | then : |
|
|
2980 | |
|
|
2981 | else $as_nop |
|
|
2982 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
|
|
2983 | fi |
|
|
2984 | |
|
|
2985 | |
|
|
2986 | # These three variables are undocumented and unsupported, |
|
|
2987 | # and are intended to be withdrawn in a future Autoconf release. |
|
|
2988 | # They can cause serious problems if a builder's source tree is in a directory |
|
|
2989 | # whose full name contains unusual characters. |
|
|
2990 | if test -f "${ac_aux_dir}config.guess"; then |
|
|
2991 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
|
|
2992 | fi |
|
|
2993 | if test -f "${ac_aux_dir}config.sub"; then |
|
|
2994 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
|
|
2995 | fi |
|
|
2996 | if test -f "$ac_aux_dir/configure"; then |
|
|
2997 | ac_configure="$SHELL ${ac_aux_dir}configure" |
1736 | fi |
2998 | fi |
1737 | |
2999 | |
1738 | # Check that the precious variables saved in the cache have kept the same |
3000 | # Check that the precious variables saved in the cache have kept the same |
1739 | # value. |
3001 | # value. |
1740 | ac_cache_corrupted=false |
3002 | ac_cache_corrupted=false |
… | |
… | |
1743 | eval ac_new_set=\$ac_env_${ac_var}_set |
3005 | eval ac_new_set=\$ac_env_${ac_var}_set |
1744 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3006 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1745 | eval ac_new_val=\$ac_env_${ac_var}_value |
3007 | eval ac_new_val=\$ac_env_${ac_var}_value |
1746 | case $ac_old_set,$ac_new_set in |
3008 | case $ac_old_set,$ac_new_set in |
1747 | set,) |
3009 | set,) |
1748 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1749 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3011 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1750 | ac_cache_corrupted=: ;; |
3012 | ac_cache_corrupted=: ;; |
1751 | ,set) |
3013 | ,set) |
1752 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
3014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1753 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3015 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1754 | ac_cache_corrupted=: ;; |
3016 | ac_cache_corrupted=: ;; |
1755 | ,);; |
3017 | ,);; |
1756 | *) |
3018 | *) |
1757 | if test "x$ac_old_val" != "x$ac_new_val"; then |
3019 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|
|
3020 | # differences in whitespace do not lead to failure. |
|
|
3021 | ac_old_val_w=`echo x $ac_old_val` |
|
|
3022 | ac_new_val_w=`echo x $ac_new_val` |
|
|
3023 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1758 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
3024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1759 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
3025 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1760 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
|
1761 | echo "$as_me: former value: $ac_old_val" >&2;} |
|
|
1762 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
|
1763 | echo "$as_me: current value: $ac_new_val" >&2;} |
|
|
1764 | ac_cache_corrupted=: |
3026 | ac_cache_corrupted=: |
|
|
3027 | else |
|
|
3028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
|
3029 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
|
3030 | eval $ac_var=\$ac_old_val |
|
|
3031 | fi |
|
|
3032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
|
3033 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
|
|
3034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
|
3035 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
1765 | fi;; |
3036 | fi;; |
1766 | esac |
3037 | esac |
1767 | # Pass precious variables to config.status. |
3038 | # Pass precious variables to config.status. |
1768 | if test "$ac_new_set" = set; then |
3039 | if test "$ac_new_set" = set; then |
1769 | case $ac_new_val in |
3040 | case $ac_new_val in |
1770 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3041 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1771 | *) ac_arg=$ac_var=$ac_new_val ;; |
3042 | *) ac_arg=$ac_var=$ac_new_val ;; |
1772 | esac |
3043 | esac |
1773 | case " $ac_configure_args " in |
3044 | case " $ac_configure_args " in |
1774 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
3045 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1775 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
3046 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1776 | esac |
3047 | esac |
1777 | fi |
3048 | fi |
1778 | done |
3049 | done |
1779 | if $ac_cache_corrupted; then |
3050 | if $ac_cache_corrupted; then |
|
|
3051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3052 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1780 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
3053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
1781 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
3054 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
1782 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
3055 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
1783 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
3056 | and start over" "$LINENO" 5 |
1784 | { (exit 1); exit 1; }; } |
|
|
1785 | fi |
3057 | fi |
1786 | |
3058 | ## -------------------- ## |
1787 | |
3059 | ## Main body of script. ## |
1788 | |
3060 | ## -------------------- ## |
1789 | |
|
|
1790 | |
|
|
1791 | |
|
|
1792 | |
|
|
1793 | |
|
|
1794 | |
|
|
1795 | |
|
|
1796 | |
|
|
1797 | |
|
|
1798 | |
|
|
1799 | |
|
|
1800 | |
|
|
1801 | |
|
|
1802 | |
3061 | |
1803 | ac_ext=c |
3062 | ac_ext=c |
1804 | ac_cpp='$CPP $CPPFLAGS' |
3063 | ac_cpp='$CPP $CPPFLAGS' |
1805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
1810 | |
3069 | |
1811 | |
3070 | |
1812 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
3071 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1813 | |
3072 | |
1814 | |
3073 | |
1815 | ac_aux_dir= |
|
|
1816 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
|
1817 | if test -f "$ac_dir/install-sh"; then |
|
|
1818 | ac_aux_dir=$ac_dir |
|
|
1819 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|
|
1820 | break |
|
|
1821 | elif test -f "$ac_dir/install.sh"; then |
|
|
1822 | ac_aux_dir=$ac_dir |
|
|
1823 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|
|
1824 | break |
|
|
1825 | elif test -f "$ac_dir/shtool"; then |
|
|
1826 | ac_aux_dir=$ac_dir |
|
|
1827 | ac_install_sh="$ac_aux_dir/shtool install -c" |
|
|
1828 | break |
|
|
1829 | fi |
|
|
1830 | done |
|
|
1831 | if test -z "$ac_aux_dir"; then |
|
|
1832 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
|
|
1833 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
|
|
1834 | { (exit 1); exit 1; }; } |
|
|
1835 | fi |
|
|
1836 | |
|
|
1837 | # These three variables are undocumented and unsupported, |
|
|
1838 | # and are intended to be withdrawn in a future Autoconf release. |
|
|
1839 | # They can cause serious problems if a builder's source tree is in a directory |
|
|
1840 | # whose full name contains unusual characters. |
|
|
1841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
|
1842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
|
1843 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
|
1844 | |
|
|
1845 | |
|
|
1846 | # Make sure we can run config.sub. |
|
|
1847 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
|
1848 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
|
|
1849 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
|
|
1850 | { (exit 1); exit 1; }; } |
|
|
1851 | |
|
|
1852 | { echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1853 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
|
|
1854 | if test "${ac_cv_build+set}" = set; then |
|
|
1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1856 | else |
|
|
1857 | ac_build_alias=$build_alias |
|
|
1858 | test "x$ac_build_alias" = x && |
|
|
1859 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
|
1860 | test "x$ac_build_alias" = x && |
|
|
1861 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1862 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1863 | { (exit 1); exit 1; }; } |
|
|
1864 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
|
1865 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
|
|
1866 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
|
|
1867 | { (exit 1); exit 1; }; } |
|
|
1868 | |
|
|
1869 | fi |
|
|
1870 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1871 | echo "${ECHO_T}$ac_cv_build" >&6; } |
|
|
1872 | case $ac_cv_build in |
|
|
1873 | *-*-*) ;; |
|
|
1874 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
|
|
1875 | echo "$as_me: error: invalid value of canonical build" >&2;} |
|
|
1876 | { (exit 1); exit 1; }; };; |
|
|
1877 | esac |
|
|
1878 | build=$ac_cv_build |
|
|
1879 | ac_save_IFS=$IFS; IFS='-' |
|
|
1880 | set x $ac_cv_build |
|
|
1881 | shift |
|
|
1882 | build_cpu=$1 |
|
|
1883 | build_vendor=$2 |
|
|
1884 | shift; shift |
|
|
1885 | # Remember, the first character of IFS is used to create $*, |
|
|
1886 | # except with old shells: |
|
|
1887 | build_os=$* |
|
|
1888 | IFS=$ac_save_IFS |
|
|
1889 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
|
1890 | |
|
|
1891 | |
|
|
1892 | { echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1893 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
|
|
1894 | if test "${ac_cv_host+set}" = set; then |
|
|
1895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1896 | else |
|
|
1897 | if test "x$host_alias" = x; then |
|
|
1898 | ac_cv_host=$ac_cv_build |
|
|
1899 | else |
|
|
1900 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
|
1901 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
|
|
1902 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
|
|
1903 | { (exit 1); exit 1; }; } |
|
|
1904 | fi |
|
|
1905 | |
|
|
1906 | fi |
|
|
1907 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1908 | echo "${ECHO_T}$ac_cv_host" >&6; } |
|
|
1909 | case $ac_cv_host in |
|
|
1910 | *-*-*) ;; |
|
|
1911 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
|
|
1912 | echo "$as_me: error: invalid value of canonical host" >&2;} |
|
|
1913 | { (exit 1); exit 1; }; };; |
|
|
1914 | esac |
|
|
1915 | host=$ac_cv_host |
|
|
1916 | ac_save_IFS=$IFS; IFS='-' |
|
|
1917 | set x $ac_cv_host |
|
|
1918 | shift |
|
|
1919 | host_cpu=$1 |
|
|
1920 | host_vendor=$2 |
|
|
1921 | shift; shift |
|
|
1922 | # Remember, the first character of IFS is used to create $*, |
|
|
1923 | # except with old shells: |
|
|
1924 | host_os=$* |
|
|
1925 | IFS=$ac_save_IFS |
|
|
1926 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
|
1927 | |
|
|
1928 | |
|
|
1929 | |
|
|
1930 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3074 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1931 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
3075 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
3076 | |
1932 | echo "" |
3077 | echo "" |
1933 | echo "configuring for rxvt $VERSION" |
3078 | echo "configuring for rxvt $VERSION" |
1934 | echo "" |
3079 | echo "" |
1935 | |
3080 | |
1936 | orig_CXXFLAGS="$CXXFLAGS" |
3081 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
3082 | |
|
|
3083 | |
|
|
3084 | |
|
|
3085 | |
|
|
3086 | |
|
|
3087 | |
|
|
3088 | |
|
|
3089 | |
1937 | |
3090 | |
1938 | |
3091 | |
1939 | ac_ext=c |
3092 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
3093 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1944 | if test -n "$ac_tool_prefix"; then |
3097 | if test -n "$ac_tool_prefix"; then |
1945 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3098 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1946 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3099 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1947 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3101 | printf %s "checking for $ac_word... " >&6; } |
1949 | if test "${ac_cv_prog_CC+set}" = set; then |
3102 | if test ${ac_cv_prog_CC+y} |
1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 | then : |
1951 | else |
3104 | printf %s "(cached) " >&6 |
|
|
3105 | else $as_nop |
1952 | if test -n "$CC"; then |
3106 | if test -n "$CC"; then |
1953 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3107 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1954 | else |
3108 | else |
1955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1956 | for as_dir in $PATH |
3110 | for as_dir in $PATH |
1957 | do |
3111 | do |
1958 | IFS=$as_save_IFS |
3112 | IFS=$as_save_IFS |
1959 | test -z "$as_dir" && as_dir=. |
3113 | case $as_dir in #((( |
|
|
3114 | '') as_dir=./ ;; |
|
|
3115 | */) ;; |
|
|
3116 | *) as_dir=$as_dir/ ;; |
|
|
3117 | esac |
1960 | for ac_exec_ext in '' $ac_executable_extensions; do |
3118 | for ac_exec_ext in '' $ac_executable_extensions; do |
1961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3119 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
1962 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3120 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3121 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
1964 | break 2 |
3122 | break 2 |
1965 | fi |
3123 | fi |
1966 | done |
3124 | done |
1967 | done |
3125 | done |
1968 | IFS=$as_save_IFS |
3126 | IFS=$as_save_IFS |
1969 | |
3127 | |
1970 | fi |
3128 | fi |
1971 | fi |
3129 | fi |
1972 | CC=$ac_cv_prog_CC |
3130 | CC=$ac_cv_prog_CC |
1973 | if test -n "$CC"; then |
3131 | if test -n "$CC"; then |
1974 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1975 | echo "${ECHO_T}$CC" >&6; } |
3133 | printf "%s\n" "$CC" >&6; } |
1976 | else |
3134 | else |
1977 | { echo "$as_me:$LINENO: result: no" >&5 |
3135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1978 | echo "${ECHO_T}no" >&6; } |
3136 | printf "%s\n" "no" >&6; } |
1979 | fi |
3137 | fi |
1980 | |
3138 | |
1981 | |
3139 | |
1982 | fi |
3140 | fi |
1983 | if test -z "$ac_cv_prog_CC"; then |
3141 | if test -z "$ac_cv_prog_CC"; then |
1984 | ac_ct_CC=$CC |
3142 | ac_ct_CC=$CC |
1985 | # Extract the first word of "gcc", so it can be a program name with args. |
3143 | # Extract the first word of "gcc", so it can be a program name with args. |
1986 | set dummy gcc; ac_word=$2 |
3144 | set dummy gcc; ac_word=$2 |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3146 | printf %s "checking for $ac_word... " >&6; } |
1989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3147 | if test ${ac_cv_prog_ac_ct_CC+y} |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3148 | then : |
1991 | else |
3149 | printf %s "(cached) " >&6 |
|
|
3150 | else $as_nop |
1992 | if test -n "$ac_ct_CC"; then |
3151 | if test -n "$ac_ct_CC"; then |
1993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3152 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1994 | else |
3153 | else |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1996 | for as_dir in $PATH |
3155 | for as_dir in $PATH |
1997 | do |
3156 | do |
1998 | IFS=$as_save_IFS |
3157 | IFS=$as_save_IFS |
1999 | test -z "$as_dir" && as_dir=. |
3158 | case $as_dir in #((( |
|
|
3159 | '') as_dir=./ ;; |
|
|
3160 | */) ;; |
|
|
3161 | *) as_dir=$as_dir/ ;; |
|
|
3162 | esac |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
3163 | for ac_exec_ext in '' $ac_executable_extensions; do |
2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3164 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2002 | ac_cv_prog_ac_ct_CC="gcc" |
3165 | ac_cv_prog_ac_ct_CC="gcc" |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3166 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2004 | break 2 |
3167 | break 2 |
2005 | fi |
3168 | fi |
2006 | done |
3169 | done |
2007 | done |
3170 | done |
2008 | IFS=$as_save_IFS |
3171 | IFS=$as_save_IFS |
2009 | |
3172 | |
2010 | fi |
3173 | fi |
2011 | fi |
3174 | fi |
2012 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3175 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2013 | if test -n "$ac_ct_CC"; then |
3176 | if test -n "$ac_ct_CC"; then |
2014 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2015 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
3178 | printf "%s\n" "$ac_ct_CC" >&6; } |
2016 | else |
3179 | else |
2017 | { echo "$as_me:$LINENO: result: no" >&5 |
3180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2018 | echo "${ECHO_T}no" >&6; } |
3181 | printf "%s\n" "no" >&6; } |
2019 | fi |
3182 | fi |
2020 | |
3183 | |
2021 | if test "x$ac_ct_CC" = x; then |
3184 | if test "x$ac_ct_CC" = x; then |
2022 | CC="" |
3185 | CC="" |
2023 | else |
3186 | else |
2024 | case $cross_compiling:$ac_tool_warned in |
3187 | case $cross_compiling:$ac_tool_warned in |
2025 | yes:) |
3188 | yes:) |
2026 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2027 | whose name does not start with the host triplet. If you think this |
3190 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2028 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2029 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2030 | whose name does not start with the host triplet. If you think this |
|
|
2031 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2032 | ac_tool_warned=yes ;; |
3191 | ac_tool_warned=yes ;; |
2033 | esac |
3192 | esac |
2034 | CC=$ac_ct_CC |
3193 | CC=$ac_ct_CC |
2035 | fi |
3194 | fi |
2036 | else |
3195 | else |
… | |
… | |
2039 | |
3198 | |
2040 | if test -z "$CC"; then |
3199 | if test -z "$CC"; then |
2041 | if test -n "$ac_tool_prefix"; then |
3200 | if test -n "$ac_tool_prefix"; then |
2042 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3201 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2043 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3202 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3204 | printf %s "checking for $ac_word... " >&6; } |
2046 | if test "${ac_cv_prog_CC+set}" = set; then |
3205 | if test ${ac_cv_prog_CC+y} |
2047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3206 | then : |
2048 | else |
3207 | printf %s "(cached) " >&6 |
|
|
3208 | else $as_nop |
2049 | if test -n "$CC"; then |
3209 | if test -n "$CC"; then |
2050 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3210 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2051 | else |
3211 | else |
2052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2053 | for as_dir in $PATH |
3213 | for as_dir in $PATH |
2054 | do |
3214 | do |
2055 | IFS=$as_save_IFS |
3215 | IFS=$as_save_IFS |
2056 | test -z "$as_dir" && as_dir=. |
3216 | case $as_dir in #((( |
|
|
3217 | '') as_dir=./ ;; |
|
|
3218 | */) ;; |
|
|
3219 | *) as_dir=$as_dir/ ;; |
|
|
3220 | esac |
2057 | for ac_exec_ext in '' $ac_executable_extensions; do |
3221 | for ac_exec_ext in '' $ac_executable_extensions; do |
2058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3222 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2059 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3223 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3224 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2061 | break 2 |
3225 | break 2 |
2062 | fi |
3226 | fi |
2063 | done |
3227 | done |
2064 | done |
3228 | done |
2065 | IFS=$as_save_IFS |
3229 | IFS=$as_save_IFS |
2066 | |
3230 | |
2067 | fi |
3231 | fi |
2068 | fi |
3232 | fi |
2069 | CC=$ac_cv_prog_CC |
3233 | CC=$ac_cv_prog_CC |
2070 | if test -n "$CC"; then |
3234 | if test -n "$CC"; then |
2071 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2072 | echo "${ECHO_T}$CC" >&6; } |
3236 | printf "%s\n" "$CC" >&6; } |
2073 | else |
3237 | else |
2074 | { echo "$as_me:$LINENO: result: no" >&5 |
3238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2075 | echo "${ECHO_T}no" >&6; } |
3239 | printf "%s\n" "no" >&6; } |
2076 | fi |
3240 | fi |
2077 | |
3241 | |
2078 | |
3242 | |
2079 | fi |
3243 | fi |
2080 | fi |
3244 | fi |
2081 | if test -z "$CC"; then |
3245 | if test -z "$CC"; then |
2082 | # Extract the first word of "cc", so it can be a program name with args. |
3246 | # Extract the first word of "cc", so it can be a program name with args. |
2083 | set dummy cc; ac_word=$2 |
3247 | set dummy cc; ac_word=$2 |
2084 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3249 | printf %s "checking for $ac_word... " >&6; } |
2086 | if test "${ac_cv_prog_CC+set}" = set; then |
3250 | if test ${ac_cv_prog_CC+y} |
2087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3251 | then : |
2088 | else |
3252 | printf %s "(cached) " >&6 |
|
|
3253 | else $as_nop |
2089 | if test -n "$CC"; then |
3254 | if test -n "$CC"; then |
2090 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3255 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2091 | else |
3256 | else |
2092 | ac_prog_rejected=no |
3257 | ac_prog_rejected=no |
2093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2094 | for as_dir in $PATH |
3259 | for as_dir in $PATH |
2095 | do |
3260 | do |
2096 | IFS=$as_save_IFS |
3261 | IFS=$as_save_IFS |
2097 | test -z "$as_dir" && as_dir=. |
3262 | case $as_dir in #((( |
|
|
3263 | '') as_dir=./ ;; |
|
|
3264 | */) ;; |
|
|
3265 | *) as_dir=$as_dir/ ;; |
|
|
3266 | esac |
2098 | for ac_exec_ext in '' $ac_executable_extensions; do |
3267 | for ac_exec_ext in '' $ac_executable_extensions; do |
2099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3268 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2100 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3269 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2101 | ac_prog_rejected=yes |
3270 | ac_prog_rejected=yes |
2102 | continue |
3271 | continue |
2103 | fi |
3272 | fi |
2104 | ac_cv_prog_CC="cc" |
3273 | ac_cv_prog_CC="cc" |
2105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3274 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2106 | break 2 |
3275 | break 2 |
2107 | fi |
3276 | fi |
2108 | done |
3277 | done |
2109 | done |
3278 | done |
2110 | IFS=$as_save_IFS |
3279 | IFS=$as_save_IFS |
2111 | |
3280 | |
2112 | if test $ac_prog_rejected = yes; then |
3281 | if test $ac_prog_rejected = yes; then |
2113 | # We found a bogon in the path, so make sure we never use it. |
3282 | # We found a bogon in the path, so make sure we never use it. |
2114 | set dummy $ac_cv_prog_CC |
3283 | set dummy $ac_cv_prog_CC |
… | |
… | |
2116 | if test $# != 0; then |
3285 | if test $# != 0; then |
2117 | # We chose a different compiler from the bogus one. |
3286 | # We chose a different compiler from the bogus one. |
2118 | # However, it has the same basename, so the bogon will be chosen |
3287 | # However, it has the same basename, so the bogon will be chosen |
2119 | # first if we set CC to just the basename; use the full file name. |
3288 | # first if we set CC to just the basename; use the full file name. |
2120 | shift |
3289 | shift |
2121 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3290 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2122 | fi |
3291 | fi |
2123 | fi |
3292 | fi |
2124 | fi |
3293 | fi |
2125 | fi |
3294 | fi |
2126 | CC=$ac_cv_prog_CC |
3295 | CC=$ac_cv_prog_CC |
2127 | if test -n "$CC"; then |
3296 | if test -n "$CC"; then |
2128 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2129 | echo "${ECHO_T}$CC" >&6; } |
3298 | printf "%s\n" "$CC" >&6; } |
2130 | else |
3299 | else |
2131 | { echo "$as_me:$LINENO: result: no" >&5 |
3300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2132 | echo "${ECHO_T}no" >&6; } |
3301 | printf "%s\n" "no" >&6; } |
2133 | fi |
3302 | fi |
2134 | |
3303 | |
2135 | |
3304 | |
2136 | fi |
3305 | fi |
2137 | if test -z "$CC"; then |
3306 | if test -z "$CC"; then |
2138 | if test -n "$ac_tool_prefix"; then |
3307 | if test -n "$ac_tool_prefix"; then |
2139 | for ac_prog in cl.exe |
3308 | for ac_prog in cl.exe |
2140 | do |
3309 | do |
2141 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3310 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2142 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3311 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2143 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3313 | printf %s "checking for $ac_word... " >&6; } |
2145 | if test "${ac_cv_prog_CC+set}" = set; then |
3314 | if test ${ac_cv_prog_CC+y} |
2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3315 | then : |
2147 | else |
3316 | printf %s "(cached) " >&6 |
|
|
3317 | else $as_nop |
2148 | if test -n "$CC"; then |
3318 | if test -n "$CC"; then |
2149 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3319 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2150 | else |
3320 | else |
2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2152 | for as_dir in $PATH |
3322 | for as_dir in $PATH |
2153 | do |
3323 | do |
2154 | IFS=$as_save_IFS |
3324 | IFS=$as_save_IFS |
2155 | test -z "$as_dir" && as_dir=. |
3325 | case $as_dir in #((( |
|
|
3326 | '') as_dir=./ ;; |
|
|
3327 | */) ;; |
|
|
3328 | *) as_dir=$as_dir/ ;; |
|
|
3329 | esac |
2156 | for ac_exec_ext in '' $ac_executable_extensions; do |
3330 | for ac_exec_ext in '' $ac_executable_extensions; do |
2157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3331 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2158 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3332 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3333 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2160 | break 2 |
3334 | break 2 |
2161 | fi |
3335 | fi |
2162 | done |
3336 | done |
2163 | done |
3337 | done |
2164 | IFS=$as_save_IFS |
3338 | IFS=$as_save_IFS |
2165 | |
3339 | |
2166 | fi |
3340 | fi |
2167 | fi |
3341 | fi |
2168 | CC=$ac_cv_prog_CC |
3342 | CC=$ac_cv_prog_CC |
2169 | if test -n "$CC"; then |
3343 | if test -n "$CC"; then |
2170 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2171 | echo "${ECHO_T}$CC" >&6; } |
3345 | printf "%s\n" "$CC" >&6; } |
2172 | else |
3346 | else |
2173 | { echo "$as_me:$LINENO: result: no" >&5 |
3347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2174 | echo "${ECHO_T}no" >&6; } |
3348 | printf "%s\n" "no" >&6; } |
2175 | fi |
3349 | fi |
2176 | |
3350 | |
2177 | |
3351 | |
2178 | test -n "$CC" && break |
3352 | test -n "$CC" && break |
2179 | done |
3353 | done |
… | |
… | |
2182 | ac_ct_CC=$CC |
3356 | ac_ct_CC=$CC |
2183 | for ac_prog in cl.exe |
3357 | for ac_prog in cl.exe |
2184 | do |
3358 | do |
2185 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3359 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2186 | set dummy $ac_prog; ac_word=$2 |
3360 | set dummy $ac_prog; ac_word=$2 |
2187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3362 | printf %s "checking for $ac_word... " >&6; } |
2189 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3363 | if test ${ac_cv_prog_ac_ct_CC+y} |
2190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3364 | then : |
2191 | else |
3365 | printf %s "(cached) " >&6 |
|
|
3366 | else $as_nop |
2192 | if test -n "$ac_ct_CC"; then |
3367 | if test -n "$ac_ct_CC"; then |
2193 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3368 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2194 | else |
3369 | else |
2195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2196 | for as_dir in $PATH |
3371 | for as_dir in $PATH |
2197 | do |
3372 | do |
2198 | IFS=$as_save_IFS |
3373 | IFS=$as_save_IFS |
2199 | test -z "$as_dir" && as_dir=. |
3374 | case $as_dir in #((( |
|
|
3375 | '') as_dir=./ ;; |
|
|
3376 | */) ;; |
|
|
3377 | *) as_dir=$as_dir/ ;; |
|
|
3378 | esac |
2200 | for ac_exec_ext in '' $ac_executable_extensions; do |
3379 | for ac_exec_ext in '' $ac_executable_extensions; do |
2201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3380 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2202 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3381 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2204 | break 2 |
3383 | break 2 |
2205 | fi |
3384 | fi |
2206 | done |
3385 | done |
2207 | done |
3386 | done |
2208 | IFS=$as_save_IFS |
3387 | IFS=$as_save_IFS |
2209 | |
3388 | |
2210 | fi |
3389 | fi |
2211 | fi |
3390 | fi |
2212 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2213 | if test -n "$ac_ct_CC"; then |
3392 | if test -n "$ac_ct_CC"; then |
2214 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2215 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
3394 | printf "%s\n" "$ac_ct_CC" >&6; } |
2216 | else |
3395 | else |
2217 | { echo "$as_me:$LINENO: result: no" >&5 |
3396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2218 | echo "${ECHO_T}no" >&6; } |
3397 | printf "%s\n" "no" >&6; } |
2219 | fi |
3398 | fi |
2220 | |
3399 | |
2221 | |
3400 | |
2222 | test -n "$ac_ct_CC" && break |
3401 | test -n "$ac_ct_CC" && break |
2223 | done |
3402 | done |
… | |
… | |
2225 | if test "x$ac_ct_CC" = x; then |
3404 | if test "x$ac_ct_CC" = x; then |
2226 | CC="" |
3405 | CC="" |
2227 | else |
3406 | else |
2228 | case $cross_compiling:$ac_tool_warned in |
3407 | case $cross_compiling:$ac_tool_warned in |
2229 | yes:) |
3408 | yes:) |
2230 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2231 | whose name does not start with the host triplet. If you think this |
3410 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2232 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2233 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2234 | whose name does not start with the host triplet. If you think this |
|
|
2235 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2236 | ac_tool_warned=yes ;; |
3411 | ac_tool_warned=yes ;; |
2237 | esac |
3412 | esac |
2238 | CC=$ac_ct_CC |
3413 | CC=$ac_ct_CC |
2239 | fi |
3414 | fi |
2240 | fi |
3415 | fi |
2241 | |
3416 | |
2242 | fi |
3417 | fi |
|
|
3418 | if test -z "$CC"; then |
|
|
3419 | if test -n "$ac_tool_prefix"; then |
|
|
3420 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
3421 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
3422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3423 | printf %s "checking for $ac_word... " >&6; } |
|
|
3424 | if test ${ac_cv_prog_CC+y} |
|
|
3425 | then : |
|
|
3426 | printf %s "(cached) " >&6 |
|
|
3427 | else $as_nop |
|
|
3428 | if test -n "$CC"; then |
|
|
3429 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3430 | else |
|
|
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3432 | for as_dir in $PATH |
|
|
3433 | do |
|
|
3434 | IFS=$as_save_IFS |
|
|
3435 | case $as_dir in #((( |
|
|
3436 | '') as_dir=./ ;; |
|
|
3437 | */) ;; |
|
|
3438 | *) as_dir=$as_dir/ ;; |
|
|
3439 | esac |
|
|
3440 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3441 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3442 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
3443 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3444 | break 2 |
|
|
3445 | fi |
|
|
3446 | done |
|
|
3447 | done |
|
|
3448 | IFS=$as_save_IFS |
2243 | |
3449 | |
|
|
3450 | fi |
|
|
3451 | fi |
|
|
3452 | CC=$ac_cv_prog_CC |
|
|
3453 | if test -n "$CC"; then |
|
|
3454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3455 | printf "%s\n" "$CC" >&6; } |
|
|
3456 | else |
|
|
3457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3458 | printf "%s\n" "no" >&6; } |
|
|
3459 | fi |
2244 | |
3460 | |
2245 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3461 | |
2246 | See \`config.log' for more details." >&5 |
3462 | fi |
|
|
3463 | if test -z "$ac_cv_prog_CC"; then |
|
|
3464 | ac_ct_CC=$CC |
|
|
3465 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
3466 | set dummy clang; ac_word=$2 |
|
|
3467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3468 | printf %s "checking for $ac_word... " >&6; } |
|
|
3469 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3470 | then : |
|
|
3471 | printf %s "(cached) " >&6 |
|
|
3472 | else $as_nop |
|
|
3473 | if test -n "$ac_ct_CC"; then |
|
|
3474 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3475 | else |
|
|
3476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3477 | for as_dir in $PATH |
|
|
3478 | do |
|
|
3479 | IFS=$as_save_IFS |
|
|
3480 | case $as_dir in #((( |
|
|
3481 | '') as_dir=./ ;; |
|
|
3482 | */) ;; |
|
|
3483 | *) as_dir=$as_dir/ ;; |
|
|
3484 | esac |
|
|
3485 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3486 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3487 | ac_cv_prog_ac_ct_CC="clang" |
|
|
3488 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3489 | break 2 |
|
|
3490 | fi |
|
|
3491 | done |
|
|
3492 | done |
|
|
3493 | IFS=$as_save_IFS |
|
|
3494 | |
|
|
3495 | fi |
|
|
3496 | fi |
|
|
3497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3498 | if test -n "$ac_ct_CC"; then |
|
|
3499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3500 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3501 | else |
|
|
3502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3503 | printf "%s\n" "no" >&6; } |
|
|
3504 | fi |
|
|
3505 | |
|
|
3506 | if test "x$ac_ct_CC" = x; then |
|
|
3507 | CC="" |
|
|
3508 | else |
|
|
3509 | case $cross_compiling:$ac_tool_warned in |
|
|
3510 | yes:) |
|
|
3511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3512 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3513 | ac_tool_warned=yes ;; |
|
|
3514 | esac |
|
|
3515 | CC=$ac_ct_CC |
|
|
3516 | fi |
|
|
3517 | else |
|
|
3518 | CC="$ac_cv_prog_CC" |
|
|
3519 | fi |
|
|
3520 | |
|
|
3521 | fi |
|
|
3522 | |
|
|
3523 | |
|
|
3524 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3525 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2247 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
3526 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2248 | See \`config.log' for more details." >&2;} |
3527 | See \`config.log' for more details" "$LINENO" 5; } |
2249 | { (exit 1); exit 1; }; } |
|
|
2250 | |
3528 | |
2251 | # Provide some information about the compiler. |
3529 | # Provide some information about the compiler. |
2252 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3530 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2253 | ac_compiler=`set X $ac_compile; echo $2` |
3531 | set X $ac_compile |
|
|
3532 | ac_compiler=$2 |
|
|
3533 | for ac_option in --version -v -V -qversion -version; do |
2254 | { (ac_try="$ac_compiler --version >&5" |
3534 | { { ac_try="$ac_compiler $ac_option >&5" |
2255 | case "(($ac_try" in |
3535 | case "(($ac_try" in |
2256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2257 | *) ac_try_echo=$ac_try;; |
3537 | *) ac_try_echo=$ac_try;; |
2258 | esac |
3538 | esac |
2259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2260 | (eval "$ac_compiler --version >&5") 2>&5 |
3540 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3541 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2261 | ac_status=$? |
3542 | ac_status=$? |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3543 | if test -s conftest.err; then |
|
|
3544 | sed '10a\ |
|
|
3545 | ... rest of stderr output deleted ... |
|
|
3546 | 10q' conftest.err >conftest.er1 |
|
|
3547 | cat conftest.er1 >&5 |
|
|
3548 | fi |
|
|
3549 | rm -f conftest.er1 conftest.err |
|
|
3550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2263 | (exit $ac_status); } |
3551 | test $ac_status = 0; } |
2264 | { (ac_try="$ac_compiler -v >&5" |
3552 | done |
|
|
3553 | |
|
|
3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3555 | /* end confdefs.h. */ |
|
|
3556 | |
|
|
3557 | int |
|
|
3558 | main (void) |
|
|
3559 | { |
|
|
3560 | |
|
|
3561 | ; |
|
|
3562 | return 0; |
|
|
3563 | } |
|
|
3564 | _ACEOF |
|
|
3565 | ac_clean_files_save=$ac_clean_files |
|
|
3566 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
|
3567 | # Try to create an executable without -o first, disregard a.out. |
|
|
3568 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
3569 | # of exeext. |
|
|
3570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
|
3571 | printf %s "checking whether the C compiler works... " >&6; } |
|
|
3572 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
3573 | |
|
|
3574 | # The possible output files: |
|
|
3575 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
|
3576 | |
|
|
3577 | ac_rmfiles= |
|
|
3578 | for ac_file in $ac_files |
|
|
3579 | do |
|
|
3580 | case $ac_file in |
|
|
3581 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
|
3582 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
3583 | esac |
|
|
3584 | done |
|
|
3585 | rm -f $ac_rmfiles |
|
|
3586 | |
|
|
3587 | if { { ac_try="$ac_link_default" |
2265 | case "(($ac_try" in |
3588 | case "(($ac_try" in |
2266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2267 | *) ac_try_echo=$ac_try;; |
3590 | *) ac_try_echo=$ac_try;; |
2268 | esac |
3591 | esac |
2269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2270 | (eval "$ac_compiler -v >&5") 2>&5 |
3593 | printf "%s\n" "$ac_try_echo"; } >&5 |
2271 | ac_status=$? |
|
|
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2273 | (exit $ac_status); } |
|
|
2274 | { (ac_try="$ac_compiler -V >&5" |
|
|
2275 | case "(($ac_try" in |
|
|
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2277 | *) ac_try_echo=$ac_try;; |
|
|
2278 | esac |
|
|
2279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2280 | (eval "$ac_compiler -V >&5") 2>&5 |
|
|
2281 | ac_status=$? |
|
|
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2283 | (exit $ac_status); } |
|
|
2284 | |
|
|
2285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2286 | /* confdefs.h. */ |
|
|
2287 | _ACEOF |
|
|
2288 | cat confdefs.h >>conftest.$ac_ext |
|
|
2289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2290 | /* end confdefs.h. */ |
|
|
2291 | |
|
|
2292 | int |
|
|
2293 | main () |
|
|
2294 | { |
|
|
2295 | |
|
|
2296 | ; |
|
|
2297 | return 0; |
|
|
2298 | } |
|
|
2299 | _ACEOF |
|
|
2300 | ac_clean_files_save=$ac_clean_files |
|
|
2301 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
|
2302 | # Try to create an executable without -o first, disregard a.out. |
|
|
2303 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
2304 | # of exeext. |
|
|
2305 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
|
2306 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
|
2307 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2308 | # |
|
|
2309 | # List of possible output files, starting from the most likely. |
|
|
2310 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
|
2311 | # only as a last resort. b.out is created by i960 compilers. |
|
|
2312 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
|
2313 | # |
|
|
2314 | # The IRIX 6 linker writes into existing files which may not be |
|
|
2315 | # executable, retaining their permissions. Remove them first so a |
|
|
2316 | # subsequent execution test works. |
|
|
2317 | ac_rmfiles= |
|
|
2318 | for ac_file in $ac_files |
|
|
2319 | do |
|
|
2320 | case $ac_file in |
|
|
2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
|
2322 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2323 | esac |
|
|
2324 | done |
|
|
2325 | rm -f $ac_rmfiles |
|
|
2326 | |
|
|
2327 | if { (ac_try="$ac_link_default" |
|
|
2328 | case "(($ac_try" in |
|
|
2329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2330 | *) ac_try_echo=$ac_try;; |
|
|
2331 | esac |
|
|
2332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2333 | (eval "$ac_link_default") 2>&5 |
3594 | (eval "$ac_link_default") 2>&5 |
2334 | ac_status=$? |
3595 | ac_status=$? |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3596 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2336 | (exit $ac_status); }; then |
3597 | test $ac_status = 0; } |
|
|
3598 | then : |
2337 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3599 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2338 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3600 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2339 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3601 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2340 | # so that the user can short-circuit this test for compilers unknown to |
3602 | # so that the user can short-circuit this test for compilers unknown to |
2341 | # Autoconf. |
3603 | # Autoconf. |
2342 | for ac_file in $ac_files '' |
3604 | for ac_file in $ac_files '' |
2343 | do |
3605 | do |
2344 | test -f "$ac_file" || continue |
3606 | test -f "$ac_file" || continue |
2345 | case $ac_file in |
3607 | case $ac_file in |
2346 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
3608 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2347 | ;; |
3609 | ;; |
2348 | [ab].out ) |
3610 | [ab].out ) |
2349 | # We found the default executable, but exeext='' is most |
3611 | # We found the default executable, but exeext='' is most |
2350 | # certainly right. |
3612 | # certainly right. |
2351 | break;; |
3613 | break;; |
2352 | *.* ) |
3614 | *.* ) |
2353 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3615 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2354 | then :; else |
3616 | then :; else |
2355 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3617 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2356 | fi |
3618 | fi |
2357 | # We set ac_cv_exeext here because the later test for it is not |
3619 | # We set ac_cv_exeext here because the later test for it is not |
2358 | # safe: cross compilers may not add the suffix if given an `-o' |
3620 | # safe: cross compilers may not add the suffix if given an `-o' |
… | |
… | |
2364 | break;; |
3626 | break;; |
2365 | esac |
3627 | esac |
2366 | done |
3628 | done |
2367 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3629 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2368 | |
3630 | |
2369 | else |
3631 | else $as_nop |
2370 | ac_file='' |
3632 | ac_file='' |
2371 | fi |
3633 | fi |
2372 | |
|
|
2373 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
2374 | echo "${ECHO_T}$ac_file" >&6; } |
|
|
2375 | if test -z "$ac_file"; then |
3634 | if test -z "$ac_file" |
|
|
3635 | then : |
|
|
3636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3637 | printf "%s\n" "no" >&6; } |
2376 | echo "$as_me: failed program was:" >&5 |
3638 | printf "%s\n" "$as_me: failed program was:" >&5 |
2377 | sed 's/^/| /' conftest.$ac_ext >&5 |
3639 | sed 's/^/| /' conftest.$ac_ext >&5 |
2378 | |
3640 | |
2379 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3641 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2380 | See \`config.log' for more details." >&5 |
3642 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2381 | echo "$as_me: error: C compiler cannot create executables |
3643 | as_fn_error 77 "C compiler cannot create executables |
2382 | See \`config.log' for more details." >&2;} |
3644 | See \`config.log' for more details" "$LINENO" 5; } |
2383 | { (exit 77); exit 77; }; } |
3645 | else $as_nop |
|
|
3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
3647 | printf "%s\n" "yes" >&6; } |
2384 | fi |
3648 | fi |
2385 | |
3649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
|
3650 | printf %s "checking for C compiler default output file name... " >&6; } |
|
|
3651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
|
3652 | printf "%s\n" "$ac_file" >&6; } |
2386 | ac_exeext=$ac_cv_exeext |
3653 | ac_exeext=$ac_cv_exeext |
2387 | |
3654 | |
2388 | # Check that the compiler produces executables we can run. If not, either |
|
|
2389 | # the compiler is broken, or we cross compile. |
|
|
2390 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
|
2391 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
|
2392 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
|
2393 | # If not cross compiling, check that we can run a simple program. |
|
|
2394 | if test "$cross_compiling" != yes; then |
|
|
2395 | if { ac_try='./$ac_file' |
|
|
2396 | { (case "(($ac_try" in |
|
|
2397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2398 | *) ac_try_echo=$ac_try;; |
|
|
2399 | esac |
|
|
2400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2401 | (eval "$ac_try") 2>&5 |
|
|
2402 | ac_status=$? |
|
|
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2404 | (exit $ac_status); }; }; then |
|
|
2405 | cross_compiling=no |
|
|
2406 | else |
|
|
2407 | if test "$cross_compiling" = maybe; then |
|
|
2408 | cross_compiling=yes |
|
|
2409 | else |
|
|
2410 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
2411 | If you meant to cross compile, use \`--host'. |
|
|
2412 | See \`config.log' for more details." >&5 |
|
|
2413 | echo "$as_me: error: cannot run C compiled programs. |
|
|
2414 | If you meant to cross compile, use \`--host'. |
|
|
2415 | See \`config.log' for more details." >&2;} |
|
|
2416 | { (exit 1); exit 1; }; } |
|
|
2417 | fi |
|
|
2418 | fi |
|
|
2419 | fi |
|
|
2420 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2421 | echo "${ECHO_T}yes" >&6; } |
|
|
2422 | |
|
|
2423 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3655 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2424 | ac_clean_files=$ac_clean_files_save |
3656 | ac_clean_files=$ac_clean_files_save |
2425 | # Check that the compiler produces executables we can run. If not, either |
|
|
2426 | # the compiler is broken, or we cross compile. |
|
|
2427 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
|
2428 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
|
2429 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
|
2430 | echo "${ECHO_T}$cross_compiling" >&6; } |
|
|
2431 | |
|
|
2432 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2433 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3658 | printf %s "checking for suffix of executables... " >&6; } |
2434 | if { (ac_try="$ac_link" |
3659 | if { { ac_try="$ac_link" |
2435 | case "(($ac_try" in |
3660 | case "(($ac_try" in |
2436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2437 | *) ac_try_echo=$ac_try;; |
3662 | *) ac_try_echo=$ac_try;; |
2438 | esac |
3663 | esac |
2439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3664 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3665 | printf "%s\n" "$ac_try_echo"; } >&5 |
2440 | (eval "$ac_link") 2>&5 |
3666 | (eval "$ac_link") 2>&5 |
2441 | ac_status=$? |
3667 | ac_status=$? |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3668 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2443 | (exit $ac_status); }; then |
3669 | test $ac_status = 0; } |
|
|
3670 | then : |
2444 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3671 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2445 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3672 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2446 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3673 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2447 | # `rm'. |
3674 | # `rm'. |
2448 | for ac_file in conftest.exe conftest conftest.*; do |
3675 | for ac_file in conftest.exe conftest conftest.*; do |
2449 | test -f "$ac_file" || continue |
3676 | test -f "$ac_file" || continue |
2450 | case $ac_file in |
3677 | case $ac_file in |
2451 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3678 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2452 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3679 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2453 | break;; |
3680 | break;; |
2454 | * ) break;; |
3681 | * ) break;; |
2455 | esac |
3682 | esac |
2456 | done |
3683 | done |
2457 | else |
3684 | else $as_nop |
2458 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3685 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2459 | See \`config.log' for more details." >&5 |
3686 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2460 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3687 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2461 | See \`config.log' for more details." >&2;} |
3688 | See \`config.log' for more details" "$LINENO" 5; } |
2462 | { (exit 1); exit 1; }; } |
|
|
2463 | fi |
3689 | fi |
2464 | |
|
|
2465 | rm -f conftest$ac_cv_exeext |
3690 | rm -f conftest conftest$ac_cv_exeext |
2466 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2467 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3692 | printf "%s\n" "$ac_cv_exeext" >&6; } |
2468 | |
3693 | |
2469 | rm -f conftest.$ac_ext |
3694 | rm -f conftest.$ac_ext |
2470 | EXEEXT=$ac_cv_exeext |
3695 | EXEEXT=$ac_cv_exeext |
2471 | ac_exeext=$EXEEXT |
3696 | ac_exeext=$EXEEXT |
2472 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
2473 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
|
2474 | if test "${ac_cv_objext+set}" = set; then |
|
|
2475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2476 | else |
|
|
2477 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2478 | /* confdefs.h. */ |
|
|
2479 | _ACEOF |
|
|
2480 | cat confdefs.h >>conftest.$ac_ext |
3697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2481 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2482 | /* end confdefs.h. */ |
3698 | /* end confdefs.h. */ |
2483 | |
3699 | #include <stdio.h> |
2484 | int |
3700 | int |
2485 | main () |
3701 | main (void) |
2486 | { |
3702 | { |
|
|
3703 | FILE *f = fopen ("conftest.out", "w"); |
|
|
3704 | return ferror (f) || fclose (f) != 0; |
2487 | |
3705 | |
2488 | ; |
3706 | ; |
2489 | return 0; |
3707 | return 0; |
2490 | } |
3708 | } |
2491 | _ACEOF |
3709 | _ACEOF |
2492 | rm -f conftest.o conftest.obj |
3710 | ac_clean_files="$ac_clean_files conftest.out" |
2493 | if { (ac_try="$ac_compile" |
3711 | # Check that the compiler produces executables we can run. If not, either |
|
|
3712 | # the compiler is broken, or we cross compile. |
|
|
3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
|
3714 | printf %s "checking whether we are cross compiling... " >&6; } |
|
|
3715 | if test "$cross_compiling" != yes; then |
|
|
3716 | { { ac_try="$ac_link" |
2494 | case "(($ac_try" in |
3717 | case "(($ac_try" in |
2495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2496 | *) ac_try_echo=$ac_try;; |
3719 | *) ac_try_echo=$ac_try;; |
2497 | esac |
3720 | esac |
2498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3722 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3723 | (eval "$ac_link") 2>&5 |
|
|
3724 | ac_status=$? |
|
|
3725 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3726 | test $ac_status = 0; } |
|
|
3727 | if { ac_try='./conftest$ac_cv_exeext' |
|
|
3728 | { { case "(($ac_try" in |
|
|
3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3730 | *) ac_try_echo=$ac_try;; |
|
|
3731 | esac |
|
|
3732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3733 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3734 | (eval "$ac_try") 2>&5 |
|
|
3735 | ac_status=$? |
|
|
3736 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3737 | test $ac_status = 0; }; }; then |
|
|
3738 | cross_compiling=no |
|
|
3739 | else |
|
|
3740 | if test "$cross_compiling" = maybe; then |
|
|
3741 | cross_compiling=yes |
|
|
3742 | else |
|
|
3743 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3744 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3745 | as_fn_error 77 "cannot run C compiled programs. |
|
|
3746 | If you meant to cross compile, use \`--host'. |
|
|
3747 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3748 | fi |
|
|
3749 | fi |
|
|
3750 | fi |
|
|
3751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
|
3752 | printf "%s\n" "$cross_compiling" >&6; } |
|
|
3753 | |
|
|
3754 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
|
3755 | ac_clean_files=$ac_clean_files_save |
|
|
3756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
|
3757 | printf %s "checking for suffix of object files... " >&6; } |
|
|
3758 | if test ${ac_cv_objext+y} |
|
|
3759 | then : |
|
|
3760 | printf %s "(cached) " >&6 |
|
|
3761 | else $as_nop |
|
|
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3763 | /* end confdefs.h. */ |
|
|
3764 | |
|
|
3765 | int |
|
|
3766 | main (void) |
|
|
3767 | { |
|
|
3768 | |
|
|
3769 | ; |
|
|
3770 | return 0; |
|
|
3771 | } |
|
|
3772 | _ACEOF |
|
|
3773 | rm -f conftest.o conftest.obj |
|
|
3774 | if { { ac_try="$ac_compile" |
|
|
3775 | case "(($ac_try" in |
|
|
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3777 | *) ac_try_echo=$ac_try;; |
|
|
3778 | esac |
|
|
3779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3780 | printf "%s\n" "$ac_try_echo"; } >&5 |
2499 | (eval "$ac_compile") 2>&5 |
3781 | (eval "$ac_compile") 2>&5 |
2500 | ac_status=$? |
3782 | ac_status=$? |
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3783 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2502 | (exit $ac_status); }; then |
3784 | test $ac_status = 0; } |
|
|
3785 | then : |
2503 | for ac_file in conftest.o conftest.obj conftest.*; do |
3786 | for ac_file in conftest.o conftest.obj conftest.*; do |
2504 | test -f "$ac_file" || continue; |
3787 | test -f "$ac_file" || continue; |
2505 | case $ac_file in |
3788 | case $ac_file in |
2506 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2507 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3790 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2508 | break;; |
3791 | break;; |
2509 | esac |
3792 | esac |
2510 | done |
3793 | done |
2511 | else |
3794 | else $as_nop |
2512 | echo "$as_me: failed program was:" >&5 |
3795 | printf "%s\n" "$as_me: failed program was:" >&5 |
2513 | sed 's/^/| /' conftest.$ac_ext >&5 |
3796 | sed 's/^/| /' conftest.$ac_ext >&5 |
2514 | |
3797 | |
2515 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3798 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2516 | See \`config.log' for more details." >&5 |
3799 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2517 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3800 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2518 | See \`config.log' for more details." >&2;} |
3801 | See \`config.log' for more details" "$LINENO" 5; } |
2519 | { (exit 1); exit 1; }; } |
|
|
2520 | fi |
3802 | fi |
2521 | |
|
|
2522 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3803 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2523 | fi |
3804 | fi |
2524 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2525 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
3806 | printf "%s\n" "$ac_cv_objext" >&6; } |
2526 | OBJEXT=$ac_cv_objext |
3807 | OBJEXT=$ac_cv_objext |
2527 | ac_objext=$OBJEXT |
3808 | ac_objext=$OBJEXT |
2528 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
2529 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
3810 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
2530 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3811 | if test ${ac_cv_c_compiler_gnu+y} |
2531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3812 | then : |
2532 | else |
3813 | printf %s "(cached) " >&6 |
2533 | cat >conftest.$ac_ext <<_ACEOF |
3814 | else $as_nop |
2534 | /* confdefs.h. */ |
|
|
2535 | _ACEOF |
|
|
2536 | cat confdefs.h >>conftest.$ac_ext |
3815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2537 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2538 | /* end confdefs.h. */ |
3816 | /* end confdefs.h. */ |
2539 | |
3817 | |
2540 | int |
3818 | int |
2541 | main () |
3819 | main (void) |
2542 | { |
3820 | { |
2543 | #ifndef __GNUC__ |
3821 | #ifndef __GNUC__ |
2544 | choke me |
3822 | choke me |
2545 | #endif |
3823 | #endif |
2546 | |
3824 | |
2547 | ; |
3825 | ; |
2548 | return 0; |
3826 | return 0; |
2549 | } |
3827 | } |
2550 | _ACEOF |
3828 | _ACEOF |
2551 | rm -f conftest.$ac_objext |
3829 | if ac_fn_c_try_compile "$LINENO" |
2552 | if { (ac_try="$ac_compile" |
3830 | then : |
2553 | case "(($ac_try" in |
|
|
2554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2555 | *) ac_try_echo=$ac_try;; |
|
|
2556 | esac |
|
|
2557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2558 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2559 | ac_status=$? |
|
|
2560 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2561 | rm -f conftest.er1 |
|
|
2562 | cat conftest.err >&5 |
|
|
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2564 | (exit $ac_status); } && { |
|
|
2565 | test -z "$ac_c_werror_flag" || |
|
|
2566 | test ! -s conftest.err |
|
|
2567 | } && test -s conftest.$ac_objext; then |
|
|
2568 | ac_compiler_gnu=yes |
3831 | ac_compiler_gnu=yes |
|
|
3832 | else $as_nop |
|
|
3833 | ac_compiler_gnu=no |
|
|
3834 | fi |
|
|
3835 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3836 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
3837 | |
|
|
3838 | fi |
|
|
3839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
3840 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3842 | |
|
|
3843 | if test $ac_compiler_gnu = yes; then |
|
|
3844 | GCC=yes |
2569 | else |
3845 | else |
2570 | echo "$as_me: failed program was:" >&5 |
3846 | GCC= |
2571 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2572 | |
|
|
2573 | ac_compiler_gnu=no |
|
|
2574 | fi |
3847 | fi |
2575 | |
|
|
2576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2577 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2578 | |
|
|
2579 | fi |
|
|
2580 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2581 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
|
2582 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
2583 | ac_test_CFLAGS=${CFLAGS+set} |
3848 | ac_test_CFLAGS=${CFLAGS+y} |
2584 | ac_save_CFLAGS=$CFLAGS |
3849 | ac_save_CFLAGS=$CFLAGS |
2585 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2586 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
3851 | printf %s "checking whether $CC accepts -g... " >&6; } |
2587 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3852 | if test ${ac_cv_prog_cc_g+y} |
2588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3853 | then : |
2589 | else |
3854 | printf %s "(cached) " >&6 |
|
|
3855 | else $as_nop |
2590 | ac_save_c_werror_flag=$ac_c_werror_flag |
3856 | ac_save_c_werror_flag=$ac_c_werror_flag |
2591 | ac_c_werror_flag=yes |
3857 | ac_c_werror_flag=yes |
2592 | ac_cv_prog_cc_g=no |
3858 | ac_cv_prog_cc_g=no |
2593 | CFLAGS="-g" |
3859 | CFLAGS="-g" |
2594 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2595 | /* confdefs.h. */ |
|
|
2596 | _ACEOF |
|
|
2597 | cat confdefs.h >>conftest.$ac_ext |
3860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2598 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2599 | /* end confdefs.h. */ |
3861 | /* end confdefs.h. */ |
2600 | |
3862 | |
2601 | int |
3863 | int |
2602 | main () |
3864 | main (void) |
2603 | { |
3865 | { |
2604 | |
3866 | |
2605 | ; |
3867 | ; |
2606 | return 0; |
3868 | return 0; |
2607 | } |
3869 | } |
2608 | _ACEOF |
3870 | _ACEOF |
2609 | rm -f conftest.$ac_objext |
3871 | if ac_fn_c_try_compile "$LINENO" |
2610 | if { (ac_try="$ac_compile" |
3872 | then : |
2611 | case "(($ac_try" in |
|
|
2612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2613 | *) ac_try_echo=$ac_try;; |
|
|
2614 | esac |
|
|
2615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2616 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2617 | ac_status=$? |
|
|
2618 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2619 | rm -f conftest.er1 |
|
|
2620 | cat conftest.err >&5 |
|
|
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2622 | (exit $ac_status); } && { |
|
|
2623 | test -z "$ac_c_werror_flag" || |
|
|
2624 | test ! -s conftest.err |
|
|
2625 | } && test -s conftest.$ac_objext; then |
|
|
2626 | ac_cv_prog_cc_g=yes |
3873 | ac_cv_prog_cc_g=yes |
2627 | else |
3874 | else $as_nop |
2628 | echo "$as_me: failed program was:" >&5 |
|
|
2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2630 | |
|
|
2631 | CFLAGS="" |
3875 | CFLAGS="" |
2632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2633 | /* confdefs.h. */ |
|
|
2634 | _ACEOF |
|
|
2635 | cat confdefs.h >>conftest.$ac_ext |
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2637 | /* end confdefs.h. */ |
3877 | /* end confdefs.h. */ |
2638 | |
3878 | |
2639 | int |
3879 | int |
2640 | main () |
3880 | main (void) |
2641 | { |
3881 | { |
2642 | |
3882 | |
2643 | ; |
3883 | ; |
2644 | return 0; |
3884 | return 0; |
2645 | } |
3885 | } |
2646 | _ACEOF |
3886 | _ACEOF |
2647 | rm -f conftest.$ac_objext |
3887 | if ac_fn_c_try_compile "$LINENO" |
2648 | if { (ac_try="$ac_compile" |
3888 | then : |
2649 | case "(($ac_try" in |
|
|
2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2651 | *) ac_try_echo=$ac_try;; |
|
|
2652 | esac |
|
|
2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2654 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2655 | ac_status=$? |
|
|
2656 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2657 | rm -f conftest.er1 |
|
|
2658 | cat conftest.err >&5 |
|
|
2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2660 | (exit $ac_status); } && { |
|
|
2661 | test -z "$ac_c_werror_flag" || |
|
|
2662 | test ! -s conftest.err |
|
|
2663 | } && test -s conftest.$ac_objext; then |
|
|
2664 | : |
|
|
2665 | else |
|
|
2666 | echo "$as_me: failed program was:" >&5 |
|
|
2667 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2668 | |
3889 | |
|
|
3890 | else $as_nop |
2669 | ac_c_werror_flag=$ac_save_c_werror_flag |
3891 | ac_c_werror_flag=$ac_save_c_werror_flag |
2670 | CFLAGS="-g" |
3892 | CFLAGS="-g" |
2671 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2672 | /* confdefs.h. */ |
|
|
2673 | _ACEOF |
|
|
2674 | cat confdefs.h >>conftest.$ac_ext |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2675 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2676 | /* end confdefs.h. */ |
3894 | /* end confdefs.h. */ |
2677 | |
3895 | |
2678 | int |
3896 | int |
2679 | main () |
3897 | main (void) |
2680 | { |
3898 | { |
2681 | |
3899 | |
2682 | ; |
3900 | ; |
2683 | return 0; |
3901 | return 0; |
2684 | } |
3902 | } |
2685 | _ACEOF |
3903 | _ACEOF |
2686 | rm -f conftest.$ac_objext |
3904 | if ac_fn_c_try_compile "$LINENO" |
2687 | if { (ac_try="$ac_compile" |
3905 | then : |
2688 | case "(($ac_try" in |
|
|
2689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2690 | *) ac_try_echo=$ac_try;; |
|
|
2691 | esac |
|
|
2692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2693 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2694 | ac_status=$? |
|
|
2695 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2696 | rm -f conftest.er1 |
|
|
2697 | cat conftest.err >&5 |
|
|
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2699 | (exit $ac_status); } && { |
|
|
2700 | test -z "$ac_c_werror_flag" || |
|
|
2701 | test ! -s conftest.err |
|
|
2702 | } && test -s conftest.$ac_objext; then |
|
|
2703 | ac_cv_prog_cc_g=yes |
3906 | ac_cv_prog_cc_g=yes |
2704 | else |
|
|
2705 | echo "$as_me: failed program was:" >&5 |
|
|
2706 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2707 | |
|
|
2708 | |
|
|
2709 | fi |
3907 | fi |
2710 | |
|
|
2711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3908 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2712 | fi |
3909 | fi |
2713 | |
|
|
2714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3910 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2715 | fi |
3911 | fi |
2716 | |
|
|
2717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3912 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2718 | ac_c_werror_flag=$ac_save_c_werror_flag |
3913 | ac_c_werror_flag=$ac_save_c_werror_flag |
2719 | fi |
3914 | fi |
2720 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2721 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3916 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
2722 | if test "$ac_test_CFLAGS" = set; then |
3917 | if test $ac_test_CFLAGS; then |
2723 | CFLAGS=$ac_save_CFLAGS |
3918 | CFLAGS=$ac_save_CFLAGS |
2724 | elif test $ac_cv_prog_cc_g = yes; then |
3919 | elif test $ac_cv_prog_cc_g = yes; then |
2725 | if test "$GCC" = yes; then |
3920 | if test "$GCC" = yes; then |
2726 | CFLAGS="-g -O2" |
3921 | CFLAGS="-g -O2" |
2727 | else |
3922 | else |
… | |
… | |
2732 | CFLAGS="-O2" |
3927 | CFLAGS="-O2" |
2733 | else |
3928 | else |
2734 | CFLAGS= |
3929 | CFLAGS= |
2735 | fi |
3930 | fi |
2736 | fi |
3931 | fi |
2737 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3932 | ac_prog_cc_stdc=no |
2738 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3933 | if test x$ac_prog_cc_stdc = xno |
|
|
3934 | then : |
|
|
3935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3936 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3937 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3938 | then : |
|
|
3939 | printf %s "(cached) " >&6 |
|
|
3940 | else $as_nop |
|
|
3941 | ac_cv_prog_cc_c11=no |
|
|
3942 | ac_save_CC=$CC |
|
|
3943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3944 | /* end confdefs.h. */ |
|
|
3945 | $ac_c_conftest_c11_program |
|
|
3946 | _ACEOF |
|
|
3947 | for ac_arg in '' -std=gnu11 |
|
|
3948 | do |
|
|
3949 | CC="$ac_save_CC $ac_arg" |
|
|
3950 | if ac_fn_c_try_compile "$LINENO" |
|
|
3951 | then : |
|
|
3952 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3953 | fi |
|
|
3954 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3955 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3956 | done |
|
|
3957 | rm -f conftest.$ac_ext |
|
|
3958 | CC=$ac_save_CC |
|
|
3959 | fi |
|
|
3960 | |
|
|
3961 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3962 | then : |
|
|
3963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3964 | printf "%s\n" "unsupported" >&6; } |
|
|
3965 | else $as_nop |
|
|
3966 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3967 | then : |
|
|
3968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3969 | printf "%s\n" "none needed" >&6; } |
|
|
3970 | else $as_nop |
|
|
3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3972 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3973 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3974 | fi |
|
|
3975 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3976 | ac_prog_cc_stdc=c11 |
|
|
3977 | fi |
|
|
3978 | fi |
|
|
3979 | if test x$ac_prog_cc_stdc = xno |
|
|
3980 | then : |
|
|
3981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3982 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3983 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3984 | then : |
|
|
3985 | printf %s "(cached) " >&6 |
|
|
3986 | else $as_nop |
|
|
3987 | ac_cv_prog_cc_c99=no |
|
|
3988 | ac_save_CC=$CC |
|
|
3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3990 | /* end confdefs.h. */ |
|
|
3991 | $ac_c_conftest_c99_program |
|
|
3992 | _ACEOF |
|
|
3993 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3994 | do |
|
|
3995 | CC="$ac_save_CC $ac_arg" |
|
|
3996 | if ac_fn_c_try_compile "$LINENO" |
|
|
3997 | then : |
|
|
3998 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3999 | fi |
|
|
4000 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4001 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
4002 | done |
|
|
4003 | rm -f conftest.$ac_ext |
|
|
4004 | CC=$ac_save_CC |
|
|
4005 | fi |
|
|
4006 | |
2739 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
4007 | if test "x$ac_cv_prog_cc_c99" = xno |
2740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4008 | then : |
2741 | else |
4009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4010 | printf "%s\n" "unsupported" >&6; } |
|
|
4011 | else $as_nop |
|
|
4012 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
4013 | then : |
|
|
4014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4015 | printf "%s\n" "none needed" >&6; } |
|
|
4016 | else $as_nop |
|
|
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
4018 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
4019 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
4020 | fi |
|
|
4021 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
4022 | ac_prog_cc_stdc=c99 |
|
|
4023 | fi |
|
|
4024 | fi |
|
|
4025 | if test x$ac_prog_cc_stdc = xno |
|
|
4026 | then : |
|
|
4027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
|
|
4028 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
|
|
4029 | if test ${ac_cv_prog_cc_c89+y} |
|
|
4030 | then : |
|
|
4031 | printf %s "(cached) " >&6 |
|
|
4032 | else $as_nop |
2742 | ac_cv_prog_cc_c89=no |
4033 | ac_cv_prog_cc_c89=no |
2743 | ac_save_CC=$CC |
4034 | ac_save_CC=$CC |
2744 | cat >conftest.$ac_ext <<_ACEOF |
4035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2745 | /* confdefs.h. */ |
4036 | /* end confdefs.h. */ |
|
|
4037 | $ac_c_conftest_c89_program |
2746 | _ACEOF |
4038 | _ACEOF |
2747 | cat confdefs.h >>conftest.$ac_ext |
4039 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2748 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2749 | /* end confdefs.h. */ |
|
|
2750 | #include <stdarg.h> |
|
|
2751 | #include <stdio.h> |
|
|
2752 | #include <sys/types.h> |
|
|
2753 | #include <sys/stat.h> |
|
|
2754 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2755 | struct buf { int x; }; |
|
|
2756 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2757 | static char *e (p, i) |
|
|
2758 | char **p; |
|
|
2759 | int i; |
|
|
2760 | { |
|
|
2761 | return p[i]; |
|
|
2762 | } |
|
|
2763 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2764 | { |
|
|
2765 | char *s; |
|
|
2766 | va_list v; |
|
|
2767 | va_start (v,p); |
|
|
2768 | s = g (p, va_arg (v,int)); |
|
|
2769 | va_end (v); |
|
|
2770 | return s; |
|
|
2771 | } |
|
|
2772 | |
|
|
2773 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2774 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2775 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2776 | as 'x'. The following induces an error, until -std is added to get |
|
|
2777 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2778 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2779 | that's true only with -std. */ |
|
|
2780 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2781 | |
|
|
2782 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2783 | inside strings and character constants. */ |
|
|
2784 | #define FOO(x) 'x' |
|
|
2785 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
2786 | |
|
|
2787 | int test (int i, double x); |
|
|
2788 | struct s1 {int (*f) (int a);}; |
|
|
2789 | struct s2 {int (*f) (double a);}; |
|
|
2790 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2791 | int argc; |
|
|
2792 | char **argv; |
|
|
2793 | int |
|
|
2794 | main () |
|
|
2795 | { |
|
|
2796 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2797 | ; |
|
|
2798 | return 0; |
|
|
2799 | } |
|
|
2800 | _ACEOF |
|
|
2801 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
|
2802 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2803 | do |
4040 | do |
2804 | CC="$ac_save_CC $ac_arg" |
4041 | CC="$ac_save_CC $ac_arg" |
2805 | rm -f conftest.$ac_objext |
4042 | if ac_fn_c_try_compile "$LINENO" |
2806 | if { (ac_try="$ac_compile" |
4043 | then : |
2807 | case "(($ac_try" in |
|
|
2808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2809 | *) ac_try_echo=$ac_try;; |
|
|
2810 | esac |
|
|
2811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2812 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2813 | ac_status=$? |
|
|
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2815 | rm -f conftest.er1 |
|
|
2816 | cat conftest.err >&5 |
|
|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2818 | (exit $ac_status); } && { |
|
|
2819 | test -z "$ac_c_werror_flag" || |
|
|
2820 | test ! -s conftest.err |
|
|
2821 | } && test -s conftest.$ac_objext; then |
|
|
2822 | ac_cv_prog_cc_c89=$ac_arg |
4044 | ac_cv_prog_cc_c89=$ac_arg |
2823 | else |
|
|
2824 | echo "$as_me: failed program was:" >&5 |
|
|
2825 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2826 | |
|
|
2827 | |
|
|
2828 | fi |
4045 | fi |
2829 | |
|
|
2830 | rm -f core conftest.err conftest.$ac_objext |
4046 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2831 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4047 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2832 | done |
4048 | done |
2833 | rm -f conftest.$ac_ext |
4049 | rm -f conftest.$ac_ext |
2834 | CC=$ac_save_CC |
4050 | CC=$ac_save_CC |
2835 | |
|
|
2836 | fi |
4051 | fi |
2837 | # AC_CACHE_VAL |
4052 | |
2838 | case "x$ac_cv_prog_cc_c89" in |
4053 | if test "x$ac_cv_prog_cc_c89" = xno |
2839 | x) |
4054 | then : |
2840 | { echo "$as_me:$LINENO: result: none needed" >&5 |
4055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2841 | echo "${ECHO_T}none needed" >&6; } ;; |
4056 | printf "%s\n" "unsupported" >&6; } |
2842 | xno) |
4057 | else $as_nop |
2843 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
4058 | if test "x$ac_cv_prog_cc_c89" = x |
2844 | echo "${ECHO_T}unsupported" >&6; } ;; |
4059 | then : |
2845 | *) |
4060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4061 | printf "%s\n" "none needed" >&6; } |
|
|
4062 | else $as_nop |
|
|
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
4064 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
2846 | CC="$CC $ac_cv_prog_cc_c89" |
4065 | CC="$CC $ac_cv_prog_cc_c89" |
2847 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4066 | fi |
2848 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
4067 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
2849 | esac |
4068 | ac_prog_cc_stdc=c89 |
2850 | |
4069 | fi |
|
|
4070 | fi |
2851 | |
4071 | |
2852 | ac_ext=c |
4072 | ac_ext=c |
2853 | ac_cpp='$CPP $CPPFLAGS' |
4073 | ac_cpp='$CPP $CPPFLAGS' |
2854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4077 | |
|
|
4078 | |
|
|
4079 | |
|
|
4080 | |
|
|
4081 | |
|
|
4082 | |
2857 | |
4083 | |
2858 | ac_ext=cpp |
4084 | ac_ext=cpp |
2859 | ac_cpp='$CXXCPP $CPPFLAGS' |
4085 | ac_cpp='$CXXCPP $CPPFLAGS' |
2860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4086 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4087 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
2863 | if test -z "$CXX"; then |
4089 | if test -z "$CXX"; then |
2864 | if test -n "$CCC"; then |
4090 | if test -n "$CCC"; then |
2865 | CXX=$CCC |
4091 | CXX=$CCC |
2866 | else |
4092 | else |
2867 | if test -n "$ac_tool_prefix"; then |
4093 | if test -n "$ac_tool_prefix"; then |
2868 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4094 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
2869 | do |
4095 | do |
2870 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4096 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2871 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4097 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4099 | printf %s "checking for $ac_word... " >&6; } |
2874 | if test "${ac_cv_prog_CXX+set}" = set; then |
4100 | if test ${ac_cv_prog_CXX+y} |
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4101 | then : |
2876 | else |
4102 | printf %s "(cached) " >&6 |
|
|
4103 | else $as_nop |
2877 | if test -n "$CXX"; then |
4104 | if test -n "$CXX"; then |
2878 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4105 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2879 | else |
4106 | else |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2881 | for as_dir in $PATH |
4108 | for as_dir in $PATH |
2882 | do |
4109 | do |
2883 | IFS=$as_save_IFS |
4110 | IFS=$as_save_IFS |
2884 | test -z "$as_dir" && as_dir=. |
4111 | case $as_dir in #((( |
|
|
4112 | '') as_dir=./ ;; |
|
|
4113 | */) ;; |
|
|
4114 | *) as_dir=$as_dir/ ;; |
|
|
4115 | esac |
2885 | for ac_exec_ext in '' $ac_executable_extensions; do |
4116 | for ac_exec_ext in '' $ac_executable_extensions; do |
2886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4117 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2887 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4118 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4119 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2889 | break 2 |
4120 | break 2 |
2890 | fi |
4121 | fi |
2891 | done |
4122 | done |
2892 | done |
4123 | done |
2893 | IFS=$as_save_IFS |
4124 | IFS=$as_save_IFS |
2894 | |
4125 | |
2895 | fi |
4126 | fi |
2896 | fi |
4127 | fi |
2897 | CXX=$ac_cv_prog_CXX |
4128 | CXX=$ac_cv_prog_CXX |
2898 | if test -n "$CXX"; then |
4129 | if test -n "$CXX"; then |
2899 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
4130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
2900 | echo "${ECHO_T}$CXX" >&6; } |
4131 | printf "%s\n" "$CXX" >&6; } |
2901 | else |
4132 | else |
2902 | { echo "$as_me:$LINENO: result: no" >&5 |
4133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2903 | echo "${ECHO_T}no" >&6; } |
4134 | printf "%s\n" "no" >&6; } |
2904 | fi |
4135 | fi |
2905 | |
4136 | |
2906 | |
4137 | |
2907 | test -n "$CXX" && break |
4138 | test -n "$CXX" && break |
2908 | done |
4139 | done |
2909 | fi |
4140 | fi |
2910 | if test -z "$CXX"; then |
4141 | if test -z "$CXX"; then |
2911 | ac_ct_CXX=$CXX |
4142 | ac_ct_CXX=$CXX |
2912 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4143 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
2913 | do |
4144 | do |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2915 | set dummy $ac_prog; ac_word=$2 |
4146 | set dummy $ac_prog; ac_word=$2 |
2916 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4148 | printf %s "checking for $ac_word... " >&6; } |
2918 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
4149 | if test ${ac_cv_prog_ac_ct_CXX+y} |
2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4150 | then : |
2920 | else |
4151 | printf %s "(cached) " >&6 |
|
|
4152 | else $as_nop |
2921 | if test -n "$ac_ct_CXX"; then |
4153 | if test -n "$ac_ct_CXX"; then |
2922 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4154 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2923 | else |
4155 | else |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2925 | for as_dir in $PATH |
4157 | for as_dir in $PATH |
2926 | do |
4158 | do |
2927 | IFS=$as_save_IFS |
4159 | IFS=$as_save_IFS |
2928 | test -z "$as_dir" && as_dir=. |
4160 | case $as_dir in #((( |
|
|
4161 | '') as_dir=./ ;; |
|
|
4162 | */) ;; |
|
|
4163 | *) as_dir=$as_dir/ ;; |
|
|
4164 | esac |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do |
4165 | for ac_exec_ext in '' $ac_executable_extensions; do |
2930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4166 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2931 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4167 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
2932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4168 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2933 | break 2 |
4169 | break 2 |
2934 | fi |
4170 | fi |
2935 | done |
4171 | done |
2936 | done |
4172 | done |
2937 | IFS=$as_save_IFS |
4173 | IFS=$as_save_IFS |
2938 | |
4174 | |
2939 | fi |
4175 | fi |
2940 | fi |
4176 | fi |
2941 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4177 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2942 | if test -n "$ac_ct_CXX"; then |
4178 | if test -n "$ac_ct_CXX"; then |
2943 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
4179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
2944 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
4180 | printf "%s\n" "$ac_ct_CXX" >&6; } |
2945 | else |
4181 | else |
2946 | { echo "$as_me:$LINENO: result: no" >&5 |
4182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2947 | echo "${ECHO_T}no" >&6; } |
4183 | printf "%s\n" "no" >&6; } |
2948 | fi |
4184 | fi |
2949 | |
4185 | |
2950 | |
4186 | |
2951 | test -n "$ac_ct_CXX" && break |
4187 | test -n "$ac_ct_CXX" && break |
2952 | done |
4188 | done |
… | |
… | |
2954 | if test "x$ac_ct_CXX" = x; then |
4190 | if test "x$ac_ct_CXX" = x; then |
2955 | CXX="g++" |
4191 | CXX="g++" |
2956 | else |
4192 | else |
2957 | case $cross_compiling:$ac_tool_warned in |
4193 | case $cross_compiling:$ac_tool_warned in |
2958 | yes:) |
4194 | yes:) |
2959 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2960 | whose name does not start with the host triplet. If you think this |
4196 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2961 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
2962 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
2963 | whose name does not start with the host triplet. If you think this |
|
|
2964 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
2965 | ac_tool_warned=yes ;; |
4197 | ac_tool_warned=yes ;; |
2966 | esac |
4198 | esac |
2967 | CXX=$ac_ct_CXX |
4199 | CXX=$ac_ct_CXX |
2968 | fi |
4200 | fi |
2969 | fi |
4201 | fi |
2970 | |
4202 | |
2971 | fi |
4203 | fi |
2972 | fi |
4204 | fi |
2973 | # Provide some information about the compiler. |
4205 | # Provide some information about the compiler. |
2974 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
4206 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
2975 | ac_compiler=`set X $ac_compile; echo $2` |
4207 | set X $ac_compile |
|
|
4208 | ac_compiler=$2 |
|
|
4209 | for ac_option in --version -v -V -qversion; do |
2976 | { (ac_try="$ac_compiler --version >&5" |
4210 | { { ac_try="$ac_compiler $ac_option >&5" |
2977 | case "(($ac_try" in |
4211 | case "(($ac_try" in |
2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2979 | *) ac_try_echo=$ac_try;; |
4213 | *) ac_try_echo=$ac_try;; |
2980 | esac |
4214 | esac |
2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4215 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2982 | (eval "$ac_compiler --version >&5") 2>&5 |
4216 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
4217 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2983 | ac_status=$? |
4218 | ac_status=$? |
2984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4219 | if test -s conftest.err; then |
|
|
4220 | sed '10a\ |
|
|
4221 | ... rest of stderr output deleted ... |
|
|
4222 | 10q' conftest.err >conftest.er1 |
|
|
4223 | cat conftest.er1 >&5 |
|
|
4224 | fi |
|
|
4225 | rm -f conftest.er1 conftest.err |
|
|
4226 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2985 | (exit $ac_status); } |
4227 | test $ac_status = 0; } |
2986 | { (ac_try="$ac_compiler -v >&5" |
4228 | done |
2987 | case "(($ac_try" in |
|
|
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2989 | *) ac_try_echo=$ac_try;; |
|
|
2990 | esac |
|
|
2991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2992 | (eval "$ac_compiler -v >&5") 2>&5 |
|
|
2993 | ac_status=$? |
|
|
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2995 | (exit $ac_status); } |
|
|
2996 | { (ac_try="$ac_compiler -V >&5" |
|
|
2997 | case "(($ac_try" in |
|
|
2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2999 | *) ac_try_echo=$ac_try;; |
|
|
3000 | esac |
|
|
3001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3002 | (eval "$ac_compiler -V >&5") 2>&5 |
|
|
3003 | ac_status=$? |
|
|
3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3005 | (exit $ac_status); } |
|
|
3006 | |
4229 | |
3007 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
4230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
3008 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
4231 | printf %s "checking whether the compiler supports GNU C++... " >&6; } |
3009 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
4232 | if test ${ac_cv_cxx_compiler_gnu+y} |
3010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4233 | then : |
3011 | else |
4234 | printf %s "(cached) " >&6 |
3012 | cat >conftest.$ac_ext <<_ACEOF |
4235 | else $as_nop |
3013 | /* confdefs.h. */ |
|
|
3014 | _ACEOF |
|
|
3015 | cat confdefs.h >>conftest.$ac_ext |
4236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3017 | /* end confdefs.h. */ |
4237 | /* end confdefs.h. */ |
3018 | |
4238 | |
3019 | int |
4239 | int |
3020 | main () |
4240 | main (void) |
3021 | { |
4241 | { |
3022 | #ifndef __GNUC__ |
4242 | #ifndef __GNUC__ |
3023 | choke me |
4243 | choke me |
3024 | #endif |
4244 | #endif |
3025 | |
4245 | |
3026 | ; |
4246 | ; |
3027 | return 0; |
4247 | return 0; |
3028 | } |
4248 | } |
3029 | _ACEOF |
4249 | _ACEOF |
3030 | rm -f conftest.$ac_objext |
4250 | if ac_fn_cxx_try_compile "$LINENO" |
3031 | if { (ac_try="$ac_compile" |
4251 | then : |
3032 | case "(($ac_try" in |
|
|
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3034 | *) ac_try_echo=$ac_try;; |
|
|
3035 | esac |
|
|
3036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3037 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3038 | ac_status=$? |
|
|
3039 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3040 | rm -f conftest.er1 |
|
|
3041 | cat conftest.err >&5 |
|
|
3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3043 | (exit $ac_status); } && { |
|
|
3044 | test -z "$ac_cxx_werror_flag" || |
|
|
3045 | test ! -s conftest.err |
|
|
3046 | } && test -s conftest.$ac_objext; then |
|
|
3047 | ac_compiler_gnu=yes |
4252 | ac_compiler_gnu=yes |
|
|
4253 | else $as_nop |
|
|
4254 | ac_compiler_gnu=no |
|
|
4255 | fi |
|
|
4256 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4257 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
|
4258 | |
|
|
4259 | fi |
|
|
4260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
|
4261 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
|
|
4262 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4263 | |
|
|
4264 | if test $ac_compiler_gnu = yes; then |
|
|
4265 | GXX=yes |
3048 | else |
4266 | else |
3049 | echo "$as_me: failed program was:" >&5 |
4267 | GXX= |
3050 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3051 | |
|
|
3052 | ac_compiler_gnu=no |
|
|
3053 | fi |
4268 | fi |
3054 | |
|
|
3055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3056 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
|
3057 | |
|
|
3058 | fi |
|
|
3059 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
|
3060 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
|
|
3061 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
|
3062 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4269 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
3063 | ac_save_CXXFLAGS=$CXXFLAGS |
4270 | ac_save_CXXFLAGS=$CXXFLAGS |
3064 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
3065 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
4272 | printf %s "checking whether $CXX accepts -g... " >&6; } |
3066 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
4273 | if test ${ac_cv_prog_cxx_g+y} |
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4274 | then : |
3068 | else |
4275 | printf %s "(cached) " >&6 |
|
|
4276 | else $as_nop |
3069 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4277 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3070 | ac_cxx_werror_flag=yes |
4278 | ac_cxx_werror_flag=yes |
3071 | ac_cv_prog_cxx_g=no |
4279 | ac_cv_prog_cxx_g=no |
3072 | CXXFLAGS="-g" |
4280 | CXXFLAGS="-g" |
3073 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3074 | /* confdefs.h. */ |
|
|
3075 | _ACEOF |
|
|
3076 | cat confdefs.h >>conftest.$ac_ext |
4281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3077 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3078 | /* end confdefs.h. */ |
4282 | /* end confdefs.h. */ |
3079 | |
4283 | |
3080 | int |
4284 | int |
3081 | main () |
4285 | main (void) |
3082 | { |
4286 | { |
3083 | |
4287 | |
3084 | ; |
4288 | ; |
3085 | return 0; |
4289 | return 0; |
3086 | } |
4290 | } |
3087 | _ACEOF |
4291 | _ACEOF |
3088 | rm -f conftest.$ac_objext |
4292 | if ac_fn_cxx_try_compile "$LINENO" |
3089 | if { (ac_try="$ac_compile" |
4293 | then : |
3090 | case "(($ac_try" in |
|
|
3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3092 | *) ac_try_echo=$ac_try;; |
|
|
3093 | esac |
|
|
3094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3095 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3096 | ac_status=$? |
|
|
3097 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3098 | rm -f conftest.er1 |
|
|
3099 | cat conftest.err >&5 |
|
|
3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3101 | (exit $ac_status); } && { |
|
|
3102 | test -z "$ac_cxx_werror_flag" || |
|
|
3103 | test ! -s conftest.err |
|
|
3104 | } && test -s conftest.$ac_objext; then |
|
|
3105 | ac_cv_prog_cxx_g=yes |
4294 | ac_cv_prog_cxx_g=yes |
3106 | else |
4295 | else $as_nop |
3107 | echo "$as_me: failed program was:" >&5 |
|
|
3108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3109 | |
|
|
3110 | CXXFLAGS="" |
4296 | CXXFLAGS="" |
3111 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3112 | /* confdefs.h. */ |
|
|
3113 | _ACEOF |
|
|
3114 | cat confdefs.h >>conftest.$ac_ext |
4297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3115 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3116 | /* end confdefs.h. */ |
4298 | /* end confdefs.h. */ |
3117 | |
4299 | |
3118 | int |
4300 | int |
3119 | main () |
4301 | main (void) |
3120 | { |
4302 | { |
3121 | |
4303 | |
3122 | ; |
4304 | ; |
3123 | return 0; |
4305 | return 0; |
3124 | } |
4306 | } |
3125 | _ACEOF |
4307 | _ACEOF |
3126 | rm -f conftest.$ac_objext |
4308 | if ac_fn_cxx_try_compile "$LINENO" |
3127 | if { (ac_try="$ac_compile" |
4309 | then : |
3128 | case "(($ac_try" in |
|
|
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3130 | *) ac_try_echo=$ac_try;; |
|
|
3131 | esac |
|
|
3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3133 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3134 | ac_status=$? |
|
|
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3136 | rm -f conftest.er1 |
|
|
3137 | cat conftest.err >&5 |
|
|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3139 | (exit $ac_status); } && { |
|
|
3140 | test -z "$ac_cxx_werror_flag" || |
|
|
3141 | test ! -s conftest.err |
|
|
3142 | } && test -s conftest.$ac_objext; then |
|
|
3143 | : |
|
|
3144 | else |
|
|
3145 | echo "$as_me: failed program was:" >&5 |
|
|
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3147 | |
4310 | |
|
|
4311 | else $as_nop |
3148 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4312 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3149 | CXXFLAGS="-g" |
4313 | CXXFLAGS="-g" |
3150 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3151 | /* confdefs.h. */ |
|
|
3152 | _ACEOF |
|
|
3153 | cat confdefs.h >>conftest.$ac_ext |
4314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3154 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3155 | /* end confdefs.h. */ |
4315 | /* end confdefs.h. */ |
3156 | |
4316 | |
3157 | int |
4317 | int |
3158 | main () |
4318 | main (void) |
3159 | { |
4319 | { |
3160 | |
4320 | |
3161 | ; |
4321 | ; |
3162 | return 0; |
4322 | return 0; |
3163 | } |
4323 | } |
3164 | _ACEOF |
4324 | _ACEOF |
3165 | rm -f conftest.$ac_objext |
4325 | if ac_fn_cxx_try_compile "$LINENO" |
3166 | if { (ac_try="$ac_compile" |
4326 | then : |
3167 | case "(($ac_try" in |
|
|
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3169 | *) ac_try_echo=$ac_try;; |
|
|
3170 | esac |
|
|
3171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3172 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3173 | ac_status=$? |
|
|
3174 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3175 | rm -f conftest.er1 |
|
|
3176 | cat conftest.err >&5 |
|
|
3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3178 | (exit $ac_status); } && { |
|
|
3179 | test -z "$ac_cxx_werror_flag" || |
|
|
3180 | test ! -s conftest.err |
|
|
3181 | } && test -s conftest.$ac_objext; then |
|
|
3182 | ac_cv_prog_cxx_g=yes |
4327 | ac_cv_prog_cxx_g=yes |
3183 | else |
|
|
3184 | echo "$as_me: failed program was:" >&5 |
|
|
3185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3186 | |
|
|
3187 | |
|
|
3188 | fi |
4328 | fi |
3189 | |
|
|
3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4329 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3191 | fi |
4330 | fi |
3192 | |
|
|
3193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3194 | fi |
4332 | fi |
3195 | |
|
|
3196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4333 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3197 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4334 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3198 | fi |
4335 | fi |
3199 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
4336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
3200 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
4337 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } |
3201 | if test "$ac_test_CXXFLAGS" = set; then |
4338 | if test $ac_test_CXXFLAGS; then |
3202 | CXXFLAGS=$ac_save_CXXFLAGS |
4339 | CXXFLAGS=$ac_save_CXXFLAGS |
3203 | elif test $ac_cv_prog_cxx_g = yes; then |
4340 | elif test $ac_cv_prog_cxx_g = yes; then |
3204 | if test "$GXX" = yes; then |
4341 | if test "$GXX" = yes; then |
3205 | CXXFLAGS="-g -O2" |
4342 | CXXFLAGS="-g -O2" |
3206 | else |
4343 | else |
… | |
… | |
3211 | CXXFLAGS="-O2" |
4348 | CXXFLAGS="-O2" |
3212 | else |
4349 | else |
3213 | CXXFLAGS= |
4350 | CXXFLAGS= |
3214 | fi |
4351 | fi |
3215 | fi |
4352 | fi |
|
|
4353 | ac_prog_cxx_stdcxx=no |
|
|
4354 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4355 | then : |
|
|
4356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
|
|
4357 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
|
|
4358 | if test ${ac_cv_prog_cxx_11+y} |
|
|
4359 | then : |
|
|
4360 | printf %s "(cached) " >&6 |
|
|
4361 | else $as_nop |
|
|
4362 | ac_cv_prog_cxx_11=no |
|
|
4363 | ac_save_CXX=$CXX |
|
|
4364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4365 | /* end confdefs.h. */ |
|
|
4366 | $ac_cxx_conftest_cxx11_program |
|
|
4367 | _ACEOF |
|
|
4368 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
|
|
4369 | do |
|
|
4370 | CXX="$ac_save_CXX $ac_arg" |
|
|
4371 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4372 | then : |
|
|
4373 | ac_cv_prog_cxx_cxx11=$ac_arg |
|
|
4374 | fi |
|
|
4375 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4376 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
|
|
4377 | done |
|
|
4378 | rm -f conftest.$ac_ext |
|
|
4379 | CXX=$ac_save_CXX |
|
|
4380 | fi |
|
|
4381 | |
|
|
4382 | if test "x$ac_cv_prog_cxx_cxx11" = xno |
|
|
4383 | then : |
|
|
4384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4385 | printf "%s\n" "unsupported" >&6; } |
|
|
4386 | else $as_nop |
|
|
4387 | if test "x$ac_cv_prog_cxx_cxx11" = x |
|
|
4388 | then : |
|
|
4389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4390 | printf "%s\n" "none needed" >&6; } |
|
|
4391 | else $as_nop |
|
|
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
|
|
4393 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
|
|
4394 | CXX="$CXX $ac_cv_prog_cxx_cxx11" |
|
|
4395 | fi |
|
|
4396 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
|
|
4397 | ac_prog_cxx_stdcxx=cxx11 |
|
|
4398 | fi |
|
|
4399 | fi |
|
|
4400 | if test x$ac_prog_cxx_stdcxx = xno |
|
|
4401 | then : |
|
|
4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
|
|
4403 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
|
|
4404 | if test ${ac_cv_prog_cxx_98+y} |
|
|
4405 | then : |
|
|
4406 | printf %s "(cached) " >&6 |
|
|
4407 | else $as_nop |
|
|
4408 | ac_cv_prog_cxx_98=no |
|
|
4409 | ac_save_CXX=$CXX |
|
|
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4411 | /* end confdefs.h. */ |
|
|
4412 | $ac_cxx_conftest_cxx98_program |
|
|
4413 | _ACEOF |
|
|
4414 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
|
|
4415 | do |
|
|
4416 | CXX="$ac_save_CXX $ac_arg" |
|
|
4417 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4418 | then : |
|
|
4419 | ac_cv_prog_cxx_cxx98=$ac_arg |
|
|
4420 | fi |
|
|
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4422 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
|
|
4423 | done |
|
|
4424 | rm -f conftest.$ac_ext |
|
|
4425 | CXX=$ac_save_CXX |
|
|
4426 | fi |
|
|
4427 | |
|
|
4428 | if test "x$ac_cv_prog_cxx_cxx98" = xno |
|
|
4429 | then : |
|
|
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4431 | printf "%s\n" "unsupported" >&6; } |
|
|
4432 | else $as_nop |
|
|
4433 | if test "x$ac_cv_prog_cxx_cxx98" = x |
|
|
4434 | then : |
|
|
4435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4436 | printf "%s\n" "none needed" >&6; } |
|
|
4437 | else $as_nop |
|
|
4438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
|
|
4439 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
|
|
4440 | CXX="$CXX $ac_cv_prog_cxx_cxx98" |
|
|
4441 | fi |
|
|
4442 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
|
|
4443 | ac_prog_cxx_stdcxx=cxx98 |
|
|
4444 | fi |
|
|
4445 | fi |
|
|
4446 | |
3216 | ac_ext=c |
4447 | ac_ext=c |
3217 | ac_cpp='$CPP $CPPFLAGS' |
4448 | ac_cpp='$CPP $CPPFLAGS' |
3218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3221 | |
4452 | |
3222 | ac_ext=c |
|
|
3223 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3227 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
|
3228 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
|
|
3229 | # On Suns, sometimes $CPP names a directory. |
|
|
3230 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3231 | CPP= |
|
|
3232 | fi |
|
|
3233 | if test -z "$CPP"; then |
|
|
3234 | if test "${ac_cv_prog_CPP+set}" = set; then |
|
|
3235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3236 | else |
|
|
3237 | # Double quotes because CPP needs to be expanded |
|
|
3238 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3239 | do |
|
|
3240 | ac_preproc_ok=false |
|
|
3241 | for ac_c_preproc_warn_flag in '' yes |
|
|
3242 | do |
|
|
3243 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3244 | # with a fresh cross-compiler works. |
|
|
3245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3246 | # <limits.h> exists even on freestanding compilers. |
|
|
3247 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3248 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3249 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3250 | /* confdefs.h. */ |
|
|
3251 | _ACEOF |
|
|
3252 | cat confdefs.h >>conftest.$ac_ext |
|
|
3253 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3254 | /* end confdefs.h. */ |
|
|
3255 | #ifdef __STDC__ |
|
|
3256 | # include <limits.h> |
|
|
3257 | #else |
|
|
3258 | # include <assert.h> |
|
|
3259 | #endif |
|
|
3260 | Syntax error |
|
|
3261 | _ACEOF |
|
|
3262 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3263 | case "(($ac_try" in |
|
|
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3265 | *) ac_try_echo=$ac_try;; |
|
|
3266 | esac |
|
|
3267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3268 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3269 | ac_status=$? |
|
|
3270 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3271 | rm -f conftest.er1 |
|
|
3272 | cat conftest.err >&5 |
|
|
3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3274 | (exit $ac_status); } >/dev/null && { |
|
|
3275 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3276 | test ! -s conftest.err |
|
|
3277 | }; then |
|
|
3278 | : |
|
|
3279 | else |
|
|
3280 | echo "$as_me: failed program was:" >&5 |
|
|
3281 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3282 | |
4453 | |
3283 | # Broken: fails on valid input. |
|
|
3284 | continue |
|
|
3285 | fi |
|
|
3286 | |
4454 | |
3287 | rm -f conftest.err conftest.$ac_ext |
|
|
3288 | |
|
|
3289 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3290 | # can be detected and how. |
|
|
3291 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3292 | /* confdefs.h. */ |
|
|
3293 | _ACEOF |
|
|
3294 | cat confdefs.h >>conftest.$ac_ext |
|
|
3295 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3296 | /* end confdefs.h. */ |
|
|
3297 | #include <ac_nonexistent.h> |
|
|
3298 | _ACEOF |
|
|
3299 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3300 | case "(($ac_try" in |
|
|
3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3302 | *) ac_try_echo=$ac_try;; |
|
|
3303 | esac |
|
|
3304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3305 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3306 | ac_status=$? |
|
|
3307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3308 | rm -f conftest.er1 |
|
|
3309 | cat conftest.err >&5 |
|
|
3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3311 | (exit $ac_status); } >/dev/null && { |
|
|
3312 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3313 | test ! -s conftest.err |
|
|
3314 | }; then |
|
|
3315 | # Broken: success on invalid input. |
|
|
3316 | continue |
|
|
3317 | else |
|
|
3318 | echo "$as_me: failed program was:" >&5 |
|
|
3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3320 | |
|
|
3321 | # Passes both tests. |
|
|
3322 | ac_preproc_ok=: |
|
|
3323 | break |
|
|
3324 | fi |
|
|
3325 | |
|
|
3326 | rm -f conftest.err conftest.$ac_ext |
|
|
3327 | |
|
|
3328 | done |
|
|
3329 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3330 | rm -f conftest.err conftest.$ac_ext |
|
|
3331 | if $ac_preproc_ok; then |
|
|
3332 | break |
|
|
3333 | fi |
|
|
3334 | |
|
|
3335 | done |
|
|
3336 | ac_cv_prog_CPP=$CPP |
|
|
3337 | |
|
|
3338 | fi |
|
|
3339 | CPP=$ac_cv_prog_CPP |
|
|
3340 | else |
|
|
3341 | ac_cv_prog_CPP=$CPP |
|
|
3342 | fi |
|
|
3343 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
3344 | echo "${ECHO_T}$CPP" >&6; } |
|
|
3345 | ac_preproc_ok=false |
|
|
3346 | for ac_c_preproc_warn_flag in '' yes |
|
|
3347 | do |
|
|
3348 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3349 | # with a fresh cross-compiler works. |
|
|
3350 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3351 | # <limits.h> exists even on freestanding compilers. |
|
|
3352 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3353 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3354 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3355 | /* confdefs.h. */ |
|
|
3356 | _ACEOF |
|
|
3357 | cat confdefs.h >>conftest.$ac_ext |
|
|
3358 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3359 | /* end confdefs.h. */ |
|
|
3360 | #ifdef __STDC__ |
|
|
3361 | # include <limits.h> |
|
|
3362 | #else |
|
|
3363 | # include <assert.h> |
|
|
3364 | #endif |
|
|
3365 | Syntax error |
|
|
3366 | _ACEOF |
|
|
3367 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3368 | case "(($ac_try" in |
|
|
3369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3370 | *) ac_try_echo=$ac_try;; |
|
|
3371 | esac |
|
|
3372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3373 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3374 | ac_status=$? |
|
|
3375 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3376 | rm -f conftest.er1 |
|
|
3377 | cat conftest.err >&5 |
|
|
3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3379 | (exit $ac_status); } >/dev/null && { |
|
|
3380 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3381 | test ! -s conftest.err |
|
|
3382 | }; then |
|
|
3383 | : |
|
|
3384 | else |
|
|
3385 | echo "$as_me: failed program was:" >&5 |
|
|
3386 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3387 | |
|
|
3388 | # Broken: fails on valid input. |
|
|
3389 | continue |
|
|
3390 | fi |
|
|
3391 | |
|
|
3392 | rm -f conftest.err conftest.$ac_ext |
|
|
3393 | |
|
|
3394 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3395 | # can be detected and how. |
|
|
3396 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3397 | /* confdefs.h. */ |
|
|
3398 | _ACEOF |
|
|
3399 | cat confdefs.h >>conftest.$ac_ext |
|
|
3400 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3401 | /* end confdefs.h. */ |
|
|
3402 | #include <ac_nonexistent.h> |
|
|
3403 | _ACEOF |
|
|
3404 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
3405 | case "(($ac_try" in |
|
|
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3407 | *) ac_try_echo=$ac_try;; |
|
|
3408 | esac |
|
|
3409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3410 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
3411 | ac_status=$? |
|
|
3412 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3413 | rm -f conftest.er1 |
|
|
3414 | cat conftest.err >&5 |
|
|
3415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3416 | (exit $ac_status); } >/dev/null && { |
|
|
3417 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
3418 | test ! -s conftest.err |
|
|
3419 | }; then |
|
|
3420 | # Broken: success on invalid input. |
|
|
3421 | continue |
|
|
3422 | else |
|
|
3423 | echo "$as_me: failed program was:" >&5 |
|
|
3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3425 | |
|
|
3426 | # Passes both tests. |
|
|
3427 | ac_preproc_ok=: |
|
|
3428 | break |
|
|
3429 | fi |
|
|
3430 | |
|
|
3431 | rm -f conftest.err conftest.$ac_ext |
|
|
3432 | |
|
|
3433 | done |
|
|
3434 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3435 | rm -f conftest.err conftest.$ac_ext |
|
|
3436 | if $ac_preproc_ok; then |
|
|
3437 | : |
|
|
3438 | else |
|
|
3439 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3440 | See \`config.log' for more details." >&5 |
|
|
3441 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3442 | See \`config.log' for more details." >&2;} |
|
|
3443 | { (exit 1); exit 1; }; } |
|
|
3444 | fi |
|
|
3445 | |
|
|
3446 | ac_ext=c |
|
|
3447 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3448 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3449 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3450 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3451 | |
|
|
3452 | # Find a good install program. We prefer a C program (faster), |
4455 | # Find a good install program. We prefer a C program (faster), |
3453 | # so one script is as good as another. But avoid the broken or |
4456 | # so one script is as good as another. But avoid the broken or |
3454 | # incompatible versions: |
4457 | # incompatible versions: |
3455 | # SysV /etc/install, /usr/sbin/install |
4458 | # SysV /etc/install, /usr/sbin/install |
3456 | # SunOS /usr/etc/install |
4459 | # SunOS /usr/etc/install |
3457 | # IRIX /sbin/install |
4460 | # IRIX /sbin/install |
… | |
… | |
3460 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4463 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3461 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4464 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3462 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4465 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3463 | # OS/2's system install, which has a completely different semantic |
4466 | # OS/2's system install, which has a completely different semantic |
3464 | # ./install, which can be erroneously created by make from ./install.sh. |
4467 | # ./install, which can be erroneously created by make from ./install.sh. |
|
|
4468 | # Reject install programs that cannot install multiple files. |
3465 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
3466 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
4470 | printf %s "checking for a BSD-compatible install... " >&6; } |
3467 | if test -z "$INSTALL"; then |
4471 | if test -z "$INSTALL"; then |
3468 | if test "${ac_cv_path_install+set}" = set; then |
4472 | if test ${ac_cv_path_install+y} |
3469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4473 | then : |
3470 | else |
4474 | printf %s "(cached) " >&6 |
|
|
4475 | else $as_nop |
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3472 | for as_dir in $PATH |
4477 | for as_dir in $PATH |
3473 | do |
4478 | do |
3474 | IFS=$as_save_IFS |
4479 | IFS=$as_save_IFS |
3475 | test -z "$as_dir" && as_dir=. |
4480 | case $as_dir in #((( |
3476 | # Account for people who put trailing slashes in PATH elements. |
4481 | '') as_dir=./ ;; |
|
|
4482 | */) ;; |
|
|
4483 | *) as_dir=$as_dir/ ;; |
|
|
4484 | esac |
|
|
4485 | # Account for fact that we put trailing slashes in our PATH walk. |
3477 | case $as_dir/ in |
4486 | case $as_dir in #(( |
3478 | ./ | .// | /cC/* | \ |
4487 | ./ | /[cC]/* | \ |
3479 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4488 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3480 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
4489 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
3481 | /usr/ucb/* ) ;; |
4490 | /usr/ucb/* ) ;; |
3482 | *) |
4491 | *) |
3483 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4492 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3484 | # Don't use installbsd from OSF since it installs stuff as root |
4493 | # Don't use installbsd from OSF since it installs stuff as root |
3485 | # by default. |
4494 | # by default. |
3486 | for ac_prog in ginstall scoinst install; do |
4495 | for ac_prog in ginstall scoinst install; do |
3487 | for ac_exec_ext in '' $ac_executable_extensions; do |
4496 | for ac_exec_ext in '' $ac_executable_extensions; do |
3488 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
4497 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
3489 | if test $ac_prog = install && |
4498 | if test $ac_prog = install && |
3490 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4499 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3491 | # AIX install. It has an incompatible calling convention. |
4500 | # AIX install. It has an incompatible calling convention. |
3492 | : |
4501 | : |
3493 | elif test $ac_prog = install && |
4502 | elif test $ac_prog = install && |
3494 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4503 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3495 | # program-specific install script used by HP pwplus--don't use. |
4504 | # program-specific install script used by HP pwplus--don't use. |
3496 | : |
4505 | : |
3497 | else |
4506 | else |
|
|
4507 | rm -rf conftest.one conftest.two conftest.dir |
|
|
4508 | echo one > conftest.one |
|
|
4509 | echo two > conftest.two |
|
|
4510 | mkdir conftest.dir |
|
|
4511 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
|
|
4512 | test -s conftest.one && test -s conftest.two && |
|
|
4513 | test -s conftest.dir/conftest.one && |
|
|
4514 | test -s conftest.dir/conftest.two |
|
|
4515 | then |
3498 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4516 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
3499 | break 3 |
4517 | break 3 |
|
|
4518 | fi |
3500 | fi |
4519 | fi |
3501 | fi |
4520 | fi |
3502 | done |
4521 | done |
3503 | done |
4522 | done |
3504 | ;; |
4523 | ;; |
3505 | esac |
4524 | esac |
|
|
4525 | |
3506 | done |
4526 | done |
3507 | IFS=$as_save_IFS |
4527 | IFS=$as_save_IFS |
3508 | |
4528 | |
|
|
4529 | rm -rf conftest.one conftest.two conftest.dir |
3509 | |
4530 | |
3510 | fi |
4531 | fi |
3511 | if test "${ac_cv_path_install+set}" = set; then |
4532 | if test ${ac_cv_path_install+y}; then |
3512 | INSTALL=$ac_cv_path_install |
4533 | INSTALL=$ac_cv_path_install |
3513 | else |
4534 | else |
3514 | # As a last resort, use the slow shell script. Don't cache a |
4535 | # As a last resort, use the slow shell script. Don't cache a |
3515 | # value for INSTALL within a source directory, because that will |
4536 | # value for INSTALL within a source directory, because that will |
3516 | # break other packages using the cache if that directory is |
4537 | # break other packages using the cache if that directory is |
3517 | # removed, or if the value is a relative name. |
4538 | # removed, or if the value is a relative name. |
3518 | INSTALL=$ac_install_sh |
4539 | INSTALL=$ac_install_sh |
3519 | fi |
4540 | fi |
3520 | fi |
4541 | fi |
3521 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3522 | echo "${ECHO_T}$INSTALL" >&6; } |
4543 | printf "%s\n" "$INSTALL" >&6; } |
3523 | |
4544 | |
3524 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4545 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3525 | # It thinks the first close brace ends the variable substitution. |
4546 | # It thinks the first close brace ends the variable substitution. |
3526 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4547 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3527 | |
4548 | |
… | |
… | |
3529 | |
4550 | |
3530 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4551 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3531 | |
4552 | |
3532 | |
4553 | |
3533 | |
4554 | |
3534 | |
4555 | ac_header= ac_cache= |
3535 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4556 | for ac_item in $ac_header_c_list |
3536 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
|
|
3537 | if test "${ac_cv_path_GREP+set}" = set; then |
|
|
3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3539 | else |
|
|
3540 | # Extract the first word of "grep ggrep" to use in msg output |
|
|
3541 | if test -z "$GREP"; then |
|
|
3542 | set dummy grep ggrep; ac_prog_name=$2 |
|
|
3543 | if test "${ac_cv_path_GREP+set}" = set; then |
|
|
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3545 | else |
|
|
3546 | ac_path_GREP_found=false |
|
|
3547 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3549 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3550 | do |
4557 | do |
3551 | IFS=$as_save_IFS |
4558 | if test $ac_cache; then |
3552 | test -z "$as_dir" && as_dir=. |
4559 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
3553 | for ac_prog in grep ggrep; do |
4560 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
3554 | for ac_exec_ext in '' $ac_executable_extensions; do |
4561 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
3555 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3556 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
|
3557 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
3558 | # Check for GNU $ac_path_GREP |
|
|
3559 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
3560 | *GNU*) |
|
|
3561 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
3562 | *) |
|
|
3563 | ac_count=0 |
|
|
3564 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3565 | while : |
|
|
3566 | do |
|
|
3567 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3568 | mv "conftest.tmp" "conftest.in" |
|
|
3569 | cp "conftest.in" "conftest.nl" |
|
|
3570 | echo 'GREP' >> "conftest.nl" |
|
|
3571 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3572 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3573 | ac_count=`expr $ac_count + 1` |
|
|
3574 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
3575 | # Best one so far, save it but keep looking for a better one |
|
|
3576 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
3577 | ac_path_GREP_max=$ac_count |
|
|
3578 | fi |
4562 | fi |
3579 | # 10*(2^10) chars as input seems more than enough |
4563 | ac_header= ac_cache= |
3580 | test $ac_count -gt 10 && break |
4564 | elif test $ac_header; then |
3581 | done |
4565 | ac_cache=$ac_item |
3582 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4566 | else |
3583 | esac |
4567 | ac_header=$ac_item |
3584 | |
4568 | fi |
3585 | |
|
|
3586 | $ac_path_GREP_found && break 3 |
|
|
3587 | done |
|
|
3588 | done |
4569 | done |
3589 | |
4570 | |
3590 | done |
|
|
3591 | IFS=$as_save_IFS |
|
|
3592 | |
4571 | |
3593 | |
4572 | |
3594 | fi |
|
|
3595 | |
4573 | |
3596 | GREP="$ac_cv_path_GREP" |
|
|
3597 | if test -z "$GREP"; then |
|
|
3598 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3599 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3600 | { (exit 1); exit 1; }; } |
|
|
3601 | fi |
|
|
3602 | |
4574 | |
3603 | else |
|
|
3604 | ac_cv_path_GREP=$GREP |
|
|
3605 | fi |
|
|
3606 | |
4575 | |
3607 | |
4576 | |
3608 | fi |
|
|
3609 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
|
|
3610 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
|
|
3611 | GREP="$ac_cv_path_GREP" |
|
|
3612 | |
4577 | |
|
|
4578 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
|
|
4579 | then : |
3613 | |
4580 | |
3614 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4581 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
3615 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
|
|
3616 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3618 | else |
|
|
3619 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
3620 | then ac_cv_path_EGREP="$GREP -E" |
|
|
3621 | else |
|
|
3622 | # Extract the first word of "egrep" to use in msg output |
|
|
3623 | if test -z "$EGREP"; then |
|
|
3624 | set dummy egrep; ac_prog_name=$2 |
|
|
3625 | if test "${ac_cv_path_EGREP+set}" = set; then |
|
|
3626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3627 | else |
|
|
3628 | ac_path_EGREP_found=false |
|
|
3629 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3631 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3632 | do |
|
|
3633 | IFS=$as_save_IFS |
|
|
3634 | test -z "$as_dir" && as_dir=. |
|
|
3635 | for ac_prog in egrep; do |
|
|
3636 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3637 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3638 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
|
3639 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3640 | # Check for GNU $ac_path_EGREP |
|
|
3641 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3642 | *GNU*) |
|
|
3643 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3644 | *) |
|
|
3645 | ac_count=0 |
|
|
3646 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
|
|
3647 | while : |
|
|
3648 | do |
|
|
3649 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3650 | mv "conftest.tmp" "conftest.in" |
|
|
3651 | cp "conftest.in" "conftest.nl" |
|
|
3652 | echo 'EGREP' >> "conftest.nl" |
|
|
3653 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3654 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3655 | ac_count=`expr $ac_count + 1` |
|
|
3656 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3657 | # Best one so far, save it but keep looking for a better one |
|
|
3658 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3659 | ac_path_EGREP_max=$ac_count |
|
|
3660 | fi |
|
|
3661 | # 10*(2^10) chars as input seems more than enough |
|
|
3662 | test $ac_count -gt 10 && break |
|
|
3663 | done |
|
|
3664 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3665 | esac |
|
|
3666 | |
4582 | |
3667 | |
|
|
3668 | $ac_path_EGREP_found && break 3 |
|
|
3669 | done |
|
|
3670 | done |
|
|
3671 | |
|
|
3672 | done |
|
|
3673 | IFS=$as_save_IFS |
|
|
3674 | |
|
|
3675 | |
|
|
3676 | fi |
4583 | fi |
3677 | |
4584 | |
3678 | EGREP="$ac_cv_path_EGREP" |
|
|
3679 | if test -z "$EGREP"; then |
|
|
3680 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
|
|
3681 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
|
|
3682 | { (exit 1); exit 1; }; } |
|
|
3683 | fi |
|
|
3684 | |
4585 | |
3685 | else |
|
|
3686 | ac_cv_path_EGREP=$EGREP |
|
|
3687 | fi |
|
|
3688 | |
4586 | |
3689 | |
4587 | |
3690 | fi |
|
|
3691 | fi |
|
|
3692 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
|
|
3693 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
|
|
3694 | EGREP="$ac_cv_path_EGREP" |
|
|
3695 | |
4588 | |
3696 | |
4589 | |
3697 | |
4590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3698 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4591 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
3699 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } |
4592 | if test ${ac_cv_safe_to_define___extensions__+y} |
3700 | cat >conftest.$ac_ext <<_ACEOF |
4593 | then : |
3701 | /* confdefs.h. */ |
4594 | printf %s "(cached) " >&6 |
3702 | _ACEOF |
4595 | else $as_nop |
3703 | cat confdefs.h >>conftest.$ac_ext |
4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3704 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3705 | /* end confdefs.h. */ |
4597 | /* end confdefs.h. */ |
3706 | #ifdef _AIX |
|
|
3707 | yes |
|
|
3708 | #endif |
|
|
3709 | |
4598 | |
3710 | _ACEOF |
4599 | # define __EXTENSIONS__ 1 |
3711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4600 | $ac_includes_default |
3712 | $EGREP "yes" >/dev/null 2>&1; then |
|
|
3713 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
3714 | echo "${ECHO_T}yes" >&6; } |
|
|
3715 | cat >>confdefs.h <<\_ACEOF |
|
|
3716 | #define _ALL_SOURCE 1 |
|
|
3717 | _ACEOF |
|
|
3718 | |
|
|
3719 | else |
|
|
3720 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
3721 | echo "${ECHO_T}no" >&6; } |
|
|
3722 | fi |
|
|
3723 | rm -f conftest* |
|
|
3724 | |
|
|
3725 | |
|
|
3726 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
|
|
3727 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
|
|
3728 | if test "${ac_cv_search_strerror+set}" = set; then |
|
|
3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3730 | else |
|
|
3731 | ac_func_search_save_LIBS=$LIBS |
|
|
3732 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3733 | /* confdefs.h. */ |
|
|
3734 | _ACEOF |
|
|
3735 | cat confdefs.h >>conftest.$ac_ext |
|
|
3736 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3737 | /* end confdefs.h. */ |
|
|
3738 | |
|
|
3739 | /* Override any GCC internal prototype to avoid an error. |
|
|
3740 | Use char because int might match the return type of a GCC |
|
|
3741 | builtin and then its argument prototype would still apply. */ |
|
|
3742 | #ifdef __cplusplus |
|
|
3743 | extern "C" |
|
|
3744 | #endif |
|
|
3745 | char strerror (); |
|
|
3746 | int |
4601 | int |
3747 | main () |
4602 | main (void) |
3748 | { |
4603 | { |
3749 | return strerror (); |
4604 | |
3750 | ; |
4605 | ; |
3751 | return 0; |
4606 | return 0; |
3752 | } |
4607 | } |
3753 | _ACEOF |
4608 | _ACEOF |
|
|
4609 | if ac_fn_c_try_compile "$LINENO" |
|
|
4610 | then : |
|
|
4611 | ac_cv_safe_to_define___extensions__=yes |
|
|
4612 | else $as_nop |
|
|
4613 | ac_cv_safe_to_define___extensions__=no |
|
|
4614 | fi |
|
|
4615 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4616 | fi |
|
|
4617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
|
|
4618 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
|
|
4619 | |
|
|
4620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
|
|
4621 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
|
|
4622 | if test ${ac_cv_should_define__xopen_source+y} |
|
|
4623 | then : |
|
|
4624 | printf %s "(cached) " >&6 |
|
|
4625 | else $as_nop |
|
|
4626 | ac_cv_should_define__xopen_source=no |
|
|
4627 | if test $ac_cv_header_wchar_h = yes |
|
|
4628 | then : |
|
|
4629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4630 | /* end confdefs.h. */ |
|
|
4631 | |
|
|
4632 | #include <wchar.h> |
|
|
4633 | mbstate_t x; |
|
|
4634 | int |
|
|
4635 | main (void) |
|
|
4636 | { |
|
|
4637 | |
|
|
4638 | ; |
|
|
4639 | return 0; |
|
|
4640 | } |
|
|
4641 | _ACEOF |
|
|
4642 | if ac_fn_c_try_compile "$LINENO" |
|
|
4643 | then : |
|
|
4644 | |
|
|
4645 | else $as_nop |
|
|
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4647 | /* end confdefs.h. */ |
|
|
4648 | |
|
|
4649 | #define _XOPEN_SOURCE 500 |
|
|
4650 | #include <wchar.h> |
|
|
4651 | mbstate_t x; |
|
|
4652 | int |
|
|
4653 | main (void) |
|
|
4654 | { |
|
|
4655 | |
|
|
4656 | ; |
|
|
4657 | return 0; |
|
|
4658 | } |
|
|
4659 | _ACEOF |
|
|
4660 | if ac_fn_c_try_compile "$LINENO" |
|
|
4661 | then : |
|
|
4662 | ac_cv_should_define__xopen_source=yes |
|
|
4663 | fi |
|
|
4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4665 | fi |
|
|
4666 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4667 | fi |
|
|
4668 | fi |
|
|
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
|
|
4670 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
|
|
4671 | |
|
|
4672 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
|
|
4673 | |
|
|
4674 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
|
|
4675 | |
|
|
4676 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
|
|
4677 | |
|
|
4678 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
|
|
4679 | |
|
|
4680 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
|
|
4681 | |
|
|
4682 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
|
|
4683 | |
|
|
4684 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
|
4685 | |
|
|
4686 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
|
|
4687 | |
|
|
4688 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
|
|
4689 | |
|
|
4690 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
|
|
4691 | |
|
|
4692 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
|
|
4693 | |
|
|
4694 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
|
|
4695 | |
|
|
4696 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
|
|
4697 | |
|
|
4698 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
|
|
4699 | |
|
|
4700 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
4701 | |
|
|
4702 | if test $ac_cv_header_minix_config_h = yes |
|
|
4703 | then : |
|
|
4704 | MINIX=yes |
|
|
4705 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
|
|
4706 | |
|
|
4707 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
|
|
4708 | |
|
|
4709 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
|
4710 | |
|
|
4711 | else $as_nop |
|
|
4712 | MINIX= |
|
|
4713 | fi |
|
|
4714 | if test $ac_cv_safe_to_define___extensions__ = yes |
|
|
4715 | then : |
|
|
4716 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
4717 | |
|
|
4718 | fi |
|
|
4719 | if test $ac_cv_should_define__xopen_source = yes |
|
|
4720 | then : |
|
|
4721 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4722 | |
|
|
4723 | fi |
|
|
4724 | |
|
|
4725 | ac_ext=cpp |
|
|
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4730 | |
|
|
4731 | |
|
|
4732 | LINKER="$CXX" |
|
|
4733 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
4734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
|
|
4735 | printf %s "checking for working libsupc++... " >&6; } |
|
|
4736 | save_CXX="$CXX" |
|
|
4737 | save_LIBS="$LIBS" |
|
|
4738 | CXX="$CC" |
|
|
4739 | LIBS="$LIBS -lsupc++" |
|
|
4740 | |
|
|
4741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4742 | /* end confdefs.h. */ |
|
|
4743 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
4744 | int |
|
|
4745 | main (void) |
|
|
4746 | { |
|
|
4747 | |
|
|
4748 | ; |
|
|
4749 | return 0; |
|
|
4750 | } |
|
|
4751 | _ACEOF |
|
|
4752 | if ac_fn_cxx_try_link "$LINENO" |
|
|
4753 | then : |
|
|
4754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
4755 | printf "%s\n" "ok" >&6; } |
|
|
4756 | LINKER="$CC" |
|
|
4757 | else $as_nop |
|
|
4758 | |
|
|
4759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
|
|
4760 | printf "%s\n" "no, making everything bigger and slower" >&6; } |
|
|
4761 | LIBS="$save_LIBS" |
|
|
4762 | |
|
|
4763 | |
|
|
4764 | fi |
|
|
4765 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4766 | conftest$ac_exeext conftest.$ac_ext |
|
|
4767 | CXX="$save_CXX" |
|
|
4768 | fi |
|
|
4769 | LINKER=$LINKER |
|
|
4770 | |
|
|
4771 | |
|
|
4772 | if test -z "$orig_CXXFLAGS"; then |
|
|
4773 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
4774 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
4775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4776 | /* end confdefs.h. */ |
|
|
4777 | |
|
|
4778 | int |
|
|
4779 | main (void) |
|
|
4780 | { |
|
|
4781 | |
|
|
4782 | ; |
|
|
4783 | return 0; |
|
|
4784 | } |
|
|
4785 | _ACEOF |
|
|
4786 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
4787 | then : |
|
|
4788 | |
|
|
4789 | else $as_nop |
|
|
4790 | CXXFLAGS="-g -O3" |
|
|
4791 | fi |
|
|
4792 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
4793 | else |
|
|
4794 | CXXFLAGS="-O" |
|
|
4795 | fi |
|
|
4796 | CFLAGS="$CXXFLAGS" |
|
|
4797 | fi |
|
|
4798 | |
|
|
4799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
|
|
4800 | printf %s "checking for library containing setlocale... " >&6; } |
|
|
4801 | if test ${ac_cv_search_setlocale+y} |
|
|
4802 | then : |
|
|
4803 | printf %s "(cached) " >&6 |
|
|
4804 | else $as_nop |
|
|
4805 | ac_func_search_save_LIBS=$LIBS |
|
|
4806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4807 | /* end confdefs.h. */ |
|
|
4808 | |
|
|
4809 | namespace conftest { |
|
|
4810 | extern "C" int setlocale (); |
|
|
4811 | } |
|
|
4812 | int |
|
|
4813 | main (void) |
|
|
4814 | { |
|
|
4815 | return conftest::setlocale (); |
|
|
4816 | ; |
|
|
4817 | return 0; |
|
|
4818 | } |
|
|
4819 | _ACEOF |
3754 | for ac_lib in '' cposix; do |
4820 | for ac_lib in '' xpg4 |
|
|
4821 | do |
3755 | if test -z "$ac_lib"; then |
4822 | if test -z "$ac_lib"; then |
3756 | ac_res="none required" |
4823 | ac_res="none required" |
3757 | else |
4824 | else |
3758 | ac_res=-l$ac_lib |
4825 | ac_res=-l$ac_lib |
3759 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3760 | fi |
4827 | fi |
3761 | rm -f conftest.$ac_objext conftest$ac_exeext |
4828 | if ac_fn_cxx_try_link "$LINENO" |
3762 | if { (ac_try="$ac_link" |
4829 | then : |
3763 | case "(($ac_try" in |
|
|
3764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3765 | *) ac_try_echo=$ac_try;; |
|
|
3766 | esac |
|
|
3767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3768 | (eval "$ac_link") 2>conftest.er1 |
|
|
3769 | ac_status=$? |
|
|
3770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3771 | rm -f conftest.er1 |
|
|
3772 | cat conftest.err >&5 |
|
|
3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3774 | (exit $ac_status); } && { |
|
|
3775 | test -z "$ac_c_werror_flag" || |
|
|
3776 | test ! -s conftest.err |
|
|
3777 | } && test -s conftest$ac_exeext && |
|
|
3778 | $as_test_x conftest$ac_exeext; then |
|
|
3779 | ac_cv_search_strerror=$ac_res |
4830 | ac_cv_search_setlocale=$ac_res |
3780 | else |
|
|
3781 | echo "$as_me: failed program was:" >&5 |
|
|
3782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3783 | |
|
|
3784 | |
|
|
3785 | fi |
4831 | fi |
3786 | |
|
|
3787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4832 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3788 | conftest$ac_exeext |
4833 | conftest$ac_exeext |
3789 | if test "${ac_cv_search_strerror+set}" = set; then |
4834 | if test ${ac_cv_search_setlocale+y} |
|
|
4835 | then : |
3790 | break |
4836 | break |
3791 | fi |
4837 | fi |
3792 | done |
4838 | done |
3793 | if test "${ac_cv_search_strerror+set}" = set; then |
4839 | if test ${ac_cv_search_setlocale+y} |
3794 | : |
4840 | then : |
3795 | else |
4841 | |
|
|
4842 | else $as_nop |
3796 | ac_cv_search_strerror=no |
4843 | ac_cv_search_setlocale=no |
3797 | fi |
4844 | fi |
3798 | rm conftest.$ac_ext |
4845 | rm conftest.$ac_ext |
3799 | LIBS=$ac_func_search_save_LIBS |
4846 | LIBS=$ac_func_search_save_LIBS |
3800 | fi |
4847 | fi |
3801 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
4848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5 |
3802 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
4849 | printf "%s\n" "$ac_cv_search_setlocale" >&6; } |
3803 | ac_res=$ac_cv_search_strerror |
4850 | ac_res=$ac_cv_search_setlocale |
3804 | if test "$ac_res" != no; then |
4851 | if test "$ac_res" != no |
|
|
4852 | then : |
3805 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4853 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3806 | |
4854 | |
3807 | fi |
4855 | fi |
3808 | |
4856 | |
3809 | ac_ext=cpp |
|
|
3810 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3814 | |
4857 | |
3815 | |
4858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
3816 | if test x$GCC = xyes && test x$GXX = xyes; then |
4859 | printf %s "checking for library containing gethostbyname... " >&6; } |
3817 | { echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
4860 | if test ${ac_cv_search_gethostbyname+y} |
3818 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } |
4861 | then : |
3819 | save_CXX="$CXX" |
4862 | printf %s "(cached) " >&6 |
3820 | save_LIBS="$LIBS" |
4863 | else $as_nop |
3821 | CXX="$CC" |
4864 | ac_func_search_save_LIBS=$LIBS |
3822 | LIBS="$LIBS -lsupc++" |
|
|
3823 | LINKER="$CC" |
|
|
3824 | |
|
|
3825 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3826 | /* confdefs.h. */ |
|
|
3827 | _ACEOF |
|
|
3828 | cat confdefs.h >>conftest.$ac_ext |
4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3829 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3830 | /* end confdefs.h. */ |
4866 | /* end confdefs.h. */ |
3831 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4867 | |
|
|
4868 | namespace conftest { |
|
|
4869 | extern "C" int gethostbyname (); |
|
|
4870 | } |
3832 | int |
4871 | int |
3833 | main () |
4872 | main (void) |
3834 | { |
4873 | { |
3835 | |
4874 | return conftest::gethostbyname (); |
3836 | ; |
4875 | ; |
3837 | return 0; |
4876 | return 0; |
3838 | } |
4877 | } |
3839 | _ACEOF |
4878 | _ACEOF |
3840 | rm -f conftest.$ac_objext conftest$ac_exeext |
4879 | for ac_lib in '' nsl |
3841 | if { (ac_try="$ac_link" |
4880 | do |
3842 | case "(($ac_try" in |
4881 | if test -z "$ac_lib"; then |
3843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4882 | ac_res="none required" |
3844 | *) ac_try_echo=$ac_try;; |
|
|
3845 | esac |
|
|
3846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3847 | (eval "$ac_link") 2>conftest.er1 |
|
|
3848 | ac_status=$? |
|
|
3849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3850 | rm -f conftest.er1 |
|
|
3851 | cat conftest.err >&5 |
|
|
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3853 | (exit $ac_status); } && { |
|
|
3854 | test -z "$ac_cxx_werror_flag" || |
|
|
3855 | test ! -s conftest.err |
|
|
3856 | } && test -s conftest$ac_exeext && |
|
|
3857 | $as_test_x conftest$ac_exeext; then |
|
|
3858 | { echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3859 | echo "${ECHO_T}ok" >&6; } |
|
|
3860 | else |
4883 | else |
3861 | echo "$as_me: failed program was:" >&5 |
4884 | ac_res=-l$ac_lib |
3862 | sed 's/^/| /' conftest.$ac_ext >&5 |
4885 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3863 | |
4886 | fi |
3864 | |
4887 | if ac_fn_cxx_try_link "$LINENO" |
3865 | { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
4888 | then : |
3866 | echo "${ECHO_T}no, making everything bigger and slower" >&6; } |
4889 | ac_cv_search_gethostbyname=$ac_res |
3867 | LIBS="$save_LIBS" |
|
|
3868 | LINKER="$save_CXX" |
|
|
3869 | |
|
|
3870 | |
|
|
3871 | fi |
4890 | fi |
3872 | |
|
|
3873 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4891 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3874 | conftest$ac_exeext conftest.$ac_ext |
4892 | conftest$ac_exeext |
3875 | CXX="$save_CXX" |
4893 | if test ${ac_cv_search_gethostbyname+y} |
|
|
4894 | then : |
|
|
4895 | break |
3876 | fi |
4896 | fi |
3877 | LINKER=$LINKER |
4897 | done |
|
|
4898 | if test ${ac_cv_search_gethostbyname+y} |
|
|
4899 | then : |
3878 | |
4900 | |
|
|
4901 | else $as_nop |
|
|
4902 | ac_cv_search_gethostbyname=no |
|
|
4903 | fi |
|
|
4904 | rm conftest.$ac_ext |
|
|
4905 | LIBS=$ac_func_search_save_LIBS |
|
|
4906 | fi |
|
|
4907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
|
|
4908 | printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
|
|
4909 | ac_res=$ac_cv_search_gethostbyname |
|
|
4910 | if test "$ac_res" != no |
|
|
4911 | then : |
|
|
4912 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3879 | |
4913 | |
3880 | if test -z "$orig_CXXFLAGS"; then |
4914 | fi |
3881 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
4915 | |
3882 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
4916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
3883 | cat >conftest.$ac_ext <<_ACEOF |
4917 | printf %s "checking for library containing socket... " >&6; } |
3884 | /* confdefs.h. */ |
4918 | if test ${ac_cv_search_socket+y} |
3885 | _ACEOF |
4919 | then : |
|
|
4920 | printf %s "(cached) " >&6 |
|
|
4921 | else $as_nop |
|
|
4922 | ac_func_search_save_LIBS=$LIBS |
3886 | cat confdefs.h >>conftest.$ac_ext |
4923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3887 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3888 | /* end confdefs.h. */ |
4924 | /* end confdefs.h. */ |
3889 | |
4925 | |
|
|
4926 | namespace conftest { |
|
|
4927 | extern "C" int socket (); |
|
|
4928 | } |
3890 | int |
4929 | int |
3891 | main () |
4930 | main (void) |
3892 | { |
4931 | { |
3893 | |
4932 | return conftest::socket (); |
3894 | ; |
4933 | ; |
3895 | return 0; |
4934 | return 0; |
3896 | } |
4935 | } |
3897 | _ACEOF |
4936 | _ACEOF |
3898 | rm -f conftest.$ac_objext |
4937 | for ac_lib in '' socket |
3899 | if { (ac_try="$ac_compile" |
4938 | do |
3900 | case "(($ac_try" in |
4939 | if test -z "$ac_lib"; then |
3901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4940 | ac_res="none required" |
3902 | *) ac_try_echo=$ac_try;; |
|
|
3903 | esac |
|
|
3904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
3905 | (eval "$ac_compile") 2>conftest.er1 |
|
|
3906 | ac_status=$? |
|
|
3907 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3908 | rm -f conftest.er1 |
|
|
3909 | cat conftest.err >&5 |
|
|
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3911 | (exit $ac_status); } && { |
|
|
3912 | test -z "$ac_cxx_werror_flag" || |
|
|
3913 | test ! -s conftest.err |
|
|
3914 | } && test -s conftest.$ac_objext; then |
|
|
3915 | : |
|
|
3916 | else |
|
|
3917 | echo "$as_me: failed program was:" >&5 |
|
|
3918 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3919 | |
|
|
3920 | CXXFLAGS="-g -O3" |
|
|
3921 | fi |
|
|
3922 | |
|
|
3923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3924 | else |
4941 | else |
3925 | CXXFLAGS="-O" |
4942 | ac_res=-l$ac_lib |
|
|
4943 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3926 | fi |
4944 | fi |
3927 | CFLAGS="$CXXFLAGS" |
4945 | if ac_fn_cxx_try_link "$LINENO" |
|
|
4946 | then : |
|
|
4947 | ac_cv_search_socket=$ac_res |
3928 | fi |
4948 | fi |
3929 | |
|
|
3930 | |
|
|
3931 | cat >>confdefs.h <<\_ACEOF |
|
|
3932 | #define _GNU_SOURCE 1 |
|
|
3933 | _ACEOF |
|
|
3934 | |
|
|
3935 | |
|
|
3936 | case $host in |
|
|
3937 | *-*-solaris* ) |
|
|
3938 | |
|
|
3939 | cat >>confdefs.h <<\_ACEOF |
|
|
3940 | #define _XOPEN_SOURCE 500 |
|
|
3941 | _ACEOF |
|
|
3942 | |
|
|
3943 | ;; |
|
|
3944 | esac |
|
|
3945 | |
|
|
3946 | |
|
|
3947 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3948 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
|
|
3949 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3951 | else |
|
|
3952 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3953 | /* confdefs.h. */ |
|
|
3954 | _ACEOF |
|
|
3955 | cat confdefs.h >>conftest.$ac_ext |
|
|
3956 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3957 | /* end confdefs.h. */ |
|
|
3958 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3959 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3960 | #define setlocale innocuous_setlocale |
|
|
3961 | |
|
|
3962 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3963 | which can conflict with char setlocale (); below. |
|
|
3964 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3965 | <limits.h> exists even on freestanding compilers. */ |
|
|
3966 | |
|
|
3967 | #ifdef __STDC__ |
|
|
3968 | # include <limits.h> |
|
|
3969 | #else |
|
|
3970 | # include <assert.h> |
|
|
3971 | #endif |
|
|
3972 | |
|
|
3973 | #undef setlocale |
|
|
3974 | |
|
|
3975 | /* Override any GCC internal prototype to avoid an error. |
|
|
3976 | Use char because int might match the return type of a GCC |
|
|
3977 | builtin and then its argument prototype would still apply. */ |
|
|
3978 | #ifdef __cplusplus |
|
|
3979 | extern "C" |
|
|
3980 | #endif |
|
|
3981 | char setlocale (); |
|
|
3982 | /* The GNU C library defines this for functions which it implements |
|
|
3983 | to always fail with ENOSYS. Some functions are actually named |
|
|
3984 | something starting with __ and the normal name is an alias. */ |
|
|
3985 | #if defined __stub_setlocale || defined __stub___setlocale |
|
|
3986 | choke me |
|
|
3987 | #endif |
|
|
3988 | |
|
|
3989 | int |
|
|
3990 | main () |
|
|
3991 | { |
|
|
3992 | return setlocale (); |
|
|
3993 | ; |
|
|
3994 | return 0; |
|
|
3995 | } |
|
|
3996 | _ACEOF |
|
|
3997 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3998 | if { (ac_try="$ac_link" |
|
|
3999 | case "(($ac_try" in |
|
|
4000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4001 | *) ac_try_echo=$ac_try;; |
|
|
4002 | esac |
|
|
4003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4004 | (eval "$ac_link") 2>conftest.er1 |
|
|
4005 | ac_status=$? |
|
|
4006 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4007 | rm -f conftest.er1 |
|
|
4008 | cat conftest.err >&5 |
|
|
4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4010 | (exit $ac_status); } && { |
|
|
4011 | test -z "$ac_cxx_werror_flag" || |
|
|
4012 | test ! -s conftest.err |
|
|
4013 | } && test -s conftest$ac_exeext && |
|
|
4014 | $as_test_x conftest$ac_exeext; then |
|
|
4015 | ac_cv_func_setlocale=yes |
|
|
4016 | else |
|
|
4017 | echo "$as_me: failed program was:" >&5 |
|
|
4018 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4019 | |
|
|
4020 | ac_cv_func_setlocale=no |
|
|
4021 | fi |
|
|
4022 | |
|
|
4023 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4949 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4024 | conftest$ac_exeext conftest.$ac_ext |
4950 | conftest$ac_exeext |
|
|
4951 | if test ${ac_cv_search_socket+y} |
|
|
4952 | then : |
|
|
4953 | break |
4025 | fi |
4954 | fi |
4026 | { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
4955 | done |
4027 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6; } |
4956 | if test ${ac_cv_search_socket+y} |
4028 | if test $ac_cv_func_setlocale = yes; then |
4957 | then : |
4029 | : |
|
|
4030 | else |
|
|
4031 | { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
|
|
4032 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; } |
|
|
4033 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
|
|
4034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4035 | else |
|
|
4036 | ac_check_lib_save_LIBS=$LIBS |
|
|
4037 | LIBS="-lxpg4 $LIBS" |
|
|
4038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4039 | /* confdefs.h. */ |
|
|
4040 | _ACEOF |
|
|
4041 | cat confdefs.h >>conftest.$ac_ext |
|
|
4042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4043 | /* end confdefs.h. */ |
|
|
4044 | |
4958 | |
4045 | /* Override any GCC internal prototype to avoid an error. |
4959 | else $as_nop |
4046 | Use char because int might match the return type of a GCC |
|
|
4047 | builtin and then its argument prototype would still apply. */ |
|
|
4048 | #ifdef __cplusplus |
|
|
4049 | extern "C" |
|
|
4050 | #endif |
|
|
4051 | char setlocale (); |
|
|
4052 | int |
|
|
4053 | main () |
|
|
4054 | { |
|
|
4055 | return setlocale (); |
|
|
4056 | ; |
|
|
4057 | return 0; |
|
|
4058 | } |
|
|
4059 | _ACEOF |
|
|
4060 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4061 | if { (ac_try="$ac_link" |
|
|
4062 | case "(($ac_try" in |
|
|
4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4064 | *) ac_try_echo=$ac_try;; |
|
|
4065 | esac |
|
|
4066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4067 | (eval "$ac_link") 2>conftest.er1 |
|
|
4068 | ac_status=$? |
|
|
4069 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4070 | rm -f conftest.er1 |
|
|
4071 | cat conftest.err >&5 |
|
|
4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4073 | (exit $ac_status); } && { |
|
|
4074 | test -z "$ac_cxx_werror_flag" || |
|
|
4075 | test ! -s conftest.err |
|
|
4076 | } && test -s conftest$ac_exeext && |
|
|
4077 | $as_test_x conftest$ac_exeext; then |
|
|
4078 | ac_cv_lib_xpg4_setlocale=yes |
|
|
4079 | else |
|
|
4080 | echo "$as_me: failed program was:" >&5 |
|
|
4081 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4082 | |
|
|
4083 | ac_cv_lib_xpg4_setlocale=no |
|
|
4084 | fi |
|
|
4085 | |
|
|
4086 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4087 | conftest$ac_exeext conftest.$ac_ext |
|
|
4088 | LIBS=$ac_check_lib_save_LIBS |
|
|
4089 | fi |
|
|
4090 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 |
|
|
4091 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } |
|
|
4092 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
|
|
4093 | LIBS="$LIBS -lxpg4" |
|
|
4094 | fi |
|
|
4095 | |
|
|
4096 | fi |
|
|
4097 | |
|
|
4098 | |
|
|
4099 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
4100 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
|
|
4101 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4103 | else |
|
|
4104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4105 | /* confdefs.h. */ |
|
|
4106 | _ACEOF |
|
|
4107 | cat confdefs.h >>conftest.$ac_ext |
|
|
4108 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4109 | /* end confdefs.h. */ |
|
|
4110 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
4111 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4112 | #define gethostbyname innocuous_gethostbyname |
|
|
4113 | |
|
|
4114 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4115 | which can conflict with char gethostbyname (); below. |
|
|
4116 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4117 | <limits.h> exists even on freestanding compilers. */ |
|
|
4118 | |
|
|
4119 | #ifdef __STDC__ |
|
|
4120 | # include <limits.h> |
|
|
4121 | #else |
|
|
4122 | # include <assert.h> |
|
|
4123 | #endif |
|
|
4124 | |
|
|
4125 | #undef gethostbyname |
|
|
4126 | |
|
|
4127 | /* Override any GCC internal prototype to avoid an error. |
|
|
4128 | Use char because int might match the return type of a GCC |
|
|
4129 | builtin and then its argument prototype would still apply. */ |
|
|
4130 | #ifdef __cplusplus |
|
|
4131 | extern "C" |
|
|
4132 | #endif |
|
|
4133 | char gethostbyname (); |
|
|
4134 | /* The GNU C library defines this for functions which it implements |
|
|
4135 | to always fail with ENOSYS. Some functions are actually named |
|
|
4136 | something starting with __ and the normal name is an alias. */ |
|
|
4137 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
4138 | choke me |
|
|
4139 | #endif |
|
|
4140 | |
|
|
4141 | int |
|
|
4142 | main () |
|
|
4143 | { |
|
|
4144 | return gethostbyname (); |
|
|
4145 | ; |
|
|
4146 | return 0; |
|
|
4147 | } |
|
|
4148 | _ACEOF |
|
|
4149 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4150 | if { (ac_try="$ac_link" |
|
|
4151 | case "(($ac_try" in |
|
|
4152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4153 | *) ac_try_echo=$ac_try;; |
|
|
4154 | esac |
|
|
4155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4156 | (eval "$ac_link") 2>conftest.er1 |
|
|
4157 | ac_status=$? |
|
|
4158 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4159 | rm -f conftest.er1 |
|
|
4160 | cat conftest.err >&5 |
|
|
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4162 | (exit $ac_status); } && { |
|
|
4163 | test -z "$ac_cxx_werror_flag" || |
|
|
4164 | test ! -s conftest.err |
|
|
4165 | } && test -s conftest$ac_exeext && |
|
|
4166 | $as_test_x conftest$ac_exeext; then |
|
|
4167 | ac_cv_func_gethostbyname=yes |
|
|
4168 | else |
|
|
4169 | echo "$as_me: failed program was:" >&5 |
|
|
4170 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4171 | |
|
|
4172 | ac_cv_func_gethostbyname=no |
|
|
4173 | fi |
|
|
4174 | |
|
|
4175 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4176 | conftest$ac_exeext conftest.$ac_ext |
|
|
4177 | fi |
|
|
4178 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
4179 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
|
|
4180 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
4181 | : |
|
|
4182 | else |
|
|
4183 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
|
|
4184 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
|
|
4185 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
|
|
4186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4187 | else |
|
|
4188 | ac_check_lib_save_LIBS=$LIBS |
|
|
4189 | LIBS="-lnsl $LIBS" |
|
|
4190 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4191 | /* confdefs.h. */ |
|
|
4192 | _ACEOF |
|
|
4193 | cat confdefs.h >>conftest.$ac_ext |
|
|
4194 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4195 | /* end confdefs.h. */ |
|
|
4196 | |
|
|
4197 | /* Override any GCC internal prototype to avoid an error. |
|
|
4198 | Use char because int might match the return type of a GCC |
|
|
4199 | builtin and then its argument prototype would still apply. */ |
|
|
4200 | #ifdef __cplusplus |
|
|
4201 | extern "C" |
|
|
4202 | #endif |
|
|
4203 | char gethostbyname (); |
|
|
4204 | int |
|
|
4205 | main () |
|
|
4206 | { |
|
|
4207 | return gethostbyname (); |
|
|
4208 | ; |
|
|
4209 | return 0; |
|
|
4210 | } |
|
|
4211 | _ACEOF |
|
|
4212 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4213 | if { (ac_try="$ac_link" |
|
|
4214 | case "(($ac_try" in |
|
|
4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4216 | *) ac_try_echo=$ac_try;; |
|
|
4217 | esac |
|
|
4218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4219 | (eval "$ac_link") 2>conftest.er1 |
|
|
4220 | ac_status=$? |
|
|
4221 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4222 | rm -f conftest.er1 |
|
|
4223 | cat conftest.err >&5 |
|
|
4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4225 | (exit $ac_status); } && { |
|
|
4226 | test -z "$ac_cxx_werror_flag" || |
|
|
4227 | test ! -s conftest.err |
|
|
4228 | } && test -s conftest$ac_exeext && |
|
|
4229 | $as_test_x conftest$ac_exeext; then |
|
|
4230 | ac_cv_lib_nsl_gethostbyname=yes |
|
|
4231 | else |
|
|
4232 | echo "$as_me: failed program was:" >&5 |
|
|
4233 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4234 | |
|
|
4235 | ac_cv_lib_nsl_gethostbyname=no |
|
|
4236 | fi |
|
|
4237 | |
|
|
4238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4239 | conftest$ac_exeext conftest.$ac_ext |
|
|
4240 | LIBS=$ac_check_lib_save_LIBS |
|
|
4241 | fi |
|
|
4242 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
4243 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
4244 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
4245 | LIBS="$LIBS -lnsl" |
|
|
4246 | fi |
|
|
4247 | |
|
|
4248 | fi |
|
|
4249 | |
|
|
4250 | { echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
4251 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } |
|
|
4252 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4254 | else |
|
|
4255 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4256 | /* confdefs.h. */ |
|
|
4257 | _ACEOF |
|
|
4258 | cat confdefs.h >>conftest.$ac_ext |
|
|
4259 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4260 | /* end confdefs.h. */ |
|
|
4261 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
4262 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
4263 | #define socket innocuous_socket |
|
|
4264 | |
|
|
4265 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
4266 | which can conflict with char socket (); below. |
|
|
4267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4268 | <limits.h> exists even on freestanding compilers. */ |
|
|
4269 | |
|
|
4270 | #ifdef __STDC__ |
|
|
4271 | # include <limits.h> |
|
|
4272 | #else |
|
|
4273 | # include <assert.h> |
|
|
4274 | #endif |
|
|
4275 | |
|
|
4276 | #undef socket |
|
|
4277 | |
|
|
4278 | /* Override any GCC internal prototype to avoid an error. |
|
|
4279 | Use char because int might match the return type of a GCC |
|
|
4280 | builtin and then its argument prototype would still apply. */ |
|
|
4281 | #ifdef __cplusplus |
|
|
4282 | extern "C" |
|
|
4283 | #endif |
|
|
4284 | char socket (); |
|
|
4285 | /* The GNU C library defines this for functions which it implements |
|
|
4286 | to always fail with ENOSYS. Some functions are actually named |
|
|
4287 | something starting with __ and the normal name is an alias. */ |
|
|
4288 | #if defined __stub_socket || defined __stub___socket |
|
|
4289 | choke me |
|
|
4290 | #endif |
|
|
4291 | |
|
|
4292 | int |
|
|
4293 | main () |
|
|
4294 | { |
|
|
4295 | return socket (); |
|
|
4296 | ; |
|
|
4297 | return 0; |
|
|
4298 | } |
|
|
4299 | _ACEOF |
|
|
4300 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4301 | if { (ac_try="$ac_link" |
|
|
4302 | case "(($ac_try" in |
|
|
4303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4304 | *) ac_try_echo=$ac_try;; |
|
|
4305 | esac |
|
|
4306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4307 | (eval "$ac_link") 2>conftest.er1 |
|
|
4308 | ac_status=$? |
|
|
4309 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4310 | rm -f conftest.er1 |
|
|
4311 | cat conftest.err >&5 |
|
|
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4313 | (exit $ac_status); } && { |
|
|
4314 | test -z "$ac_cxx_werror_flag" || |
|
|
4315 | test ! -s conftest.err |
|
|
4316 | } && test -s conftest$ac_exeext && |
|
|
4317 | $as_test_x conftest$ac_exeext; then |
|
|
4318 | ac_cv_func_socket=yes |
|
|
4319 | else |
|
|
4320 | echo "$as_me: failed program was:" >&5 |
|
|
4321 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4322 | |
|
|
4323 | ac_cv_func_socket=no |
4960 | ac_cv_search_socket=no |
4324 | fi |
4961 | fi |
4325 | |
4962 | rm conftest.$ac_ext |
4326 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4963 | LIBS=$ac_func_search_save_LIBS |
4327 | conftest$ac_exeext conftest.$ac_ext |
|
|
4328 | fi |
4964 | fi |
4329 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
4965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
4330 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } |
4966 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
4331 | if test $ac_cv_func_socket = yes; then |
4967 | ac_res=$ac_cv_search_socket |
4332 | : |
4968 | if test "$ac_res" != no |
4333 | else |
4969 | then : |
4334 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
4970 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4335 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
|
|
4336 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
|
|
4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4338 | else |
|
|
4339 | ac_check_lib_save_LIBS=$LIBS |
|
|
4340 | LIBS="-lsocket $LIBS" |
|
|
4341 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4342 | /* confdefs.h. */ |
|
|
4343 | _ACEOF |
|
|
4344 | cat confdefs.h >>conftest.$ac_ext |
|
|
4345 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4346 | /* end confdefs.h. */ |
|
|
4347 | |
4971 | |
4348 | /* Override any GCC internal prototype to avoid an error. |
|
|
4349 | Use char because int might match the return type of a GCC |
|
|
4350 | builtin and then its argument prototype would still apply. */ |
|
|
4351 | #ifdef __cplusplus |
|
|
4352 | extern "C" |
|
|
4353 | #endif |
|
|
4354 | char socket (); |
|
|
4355 | int |
|
|
4356 | main () |
|
|
4357 | { |
|
|
4358 | return socket (); |
|
|
4359 | ; |
|
|
4360 | return 0; |
|
|
4361 | } |
|
|
4362 | _ACEOF |
|
|
4363 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4364 | if { (ac_try="$ac_link" |
|
|
4365 | case "(($ac_try" in |
|
|
4366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4367 | *) ac_try_echo=$ac_try;; |
|
|
4368 | esac |
|
|
4369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4370 | (eval "$ac_link") 2>conftest.er1 |
|
|
4371 | ac_status=$? |
|
|
4372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4373 | rm -f conftest.er1 |
|
|
4374 | cat conftest.err >&5 |
|
|
4375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4376 | (exit $ac_status); } && { |
|
|
4377 | test -z "$ac_cxx_werror_flag" || |
|
|
4378 | test ! -s conftest.err |
|
|
4379 | } && test -s conftest$ac_exeext && |
|
|
4380 | $as_test_x conftest$ac_exeext; then |
|
|
4381 | ac_cv_lib_socket_socket=yes |
|
|
4382 | else |
|
|
4383 | echo "$as_me: failed program was:" >&5 |
|
|
4384 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4385 | |
|
|
4386 | ac_cv_lib_socket_socket=no |
|
|
4387 | fi |
4972 | fi |
4388 | |
|
|
4389 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
4390 | conftest$ac_exeext conftest.$ac_ext |
|
|
4391 | LIBS=$ac_check_lib_save_LIBS |
|
|
4392 | fi |
|
|
4393 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
|
|
4394 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
|
|
4395 | if test $ac_cv_lib_socket_socket = yes; then |
|
|
4396 | LIBS="$LIBS -lsocket" |
|
|
4397 | fi |
|
|
4398 | |
|
|
4399 | fi |
|
|
4400 | |
|
|
4401 | |
4973 | |
4402 | |
4974 | |
4403 | support_frills=yes |
4975 | support_frills=yes |
4404 | support_inheritpixmap=yes |
4976 | support_inheritpixmap=yes |
4405 | support_tinting=yes |
|
|
4406 | support_fading=yes |
4977 | support_fading=yes |
4407 | support_keepscrolling=yes |
4978 | support_keepscrolling=yes |
4408 | support_selectionscrolling=yes |
4979 | support_selectionscrolling=yes |
4409 | support_mousewheel=yes |
4980 | support_mousewheel=yes |
4410 | support_mouseslipwheel=yes |
4981 | support_mouseslipwheel=yes |
4411 | support_text_blink=yes |
4982 | support_text_blink=yes |
4412 | support_pointer_blank=yes |
4983 | support_pointer_blank=yes |
4413 | support_scroll_rxvt=yes |
4984 | support_scroll_rxvt=yes |
4414 | support_scroll_next=yes |
4985 | support_scroll_next=yes |
4415 | support_scroll_xterm=yes |
4986 | support_scroll_xterm=yes |
4416 | support_scroll_plain=yes |
|
|
4417 | support_xim=yes |
4987 | support_xim=yes |
4418 | support_xpm=yes |
4988 | support_pixbuf=yes |
4419 | support_afterimage=yes |
4989 | support_startup_notification=yes |
4420 | support_afterstep=yes |
|
|
4421 | support_xft=yes |
4990 | support_xft=yes |
4422 | support_unicode3=no |
4991 | support_unicode3=no |
4423 | support_combining=yes |
4992 | support_combining=yes |
4424 | support_8bitctrls=no |
4993 | support_8bitctrls=no |
4425 | support_iso14755=yes |
4994 | support_iso14755=yes |
4426 | support_styles=yes |
4995 | support_styles=yes |
4427 | support_perl=yes |
4996 | support_perl=yes |
4428 | codesets=all |
4997 | codesets=all |
4429 | |
4998 | |
4430 | |
4999 | |
4431 | if test "x$enable_shared" = xyes; then |
|
|
4432 | |
|
|
4433 | cat >>confdefs.h <<\_ACEOF |
|
|
4434 | #define LIBRXVT 1 |
|
|
4435 | _ACEOF |
|
|
4436 | |
|
|
4437 | INSTALL_LIBRXVT=yes |
|
|
4438 | fi |
|
|
4439 | |
|
|
4440 | |
|
|
4441 | # Check whether --enable-everything was given. |
5000 | # Check whether --enable-everything was given. |
4442 | if test "${enable_everything+set}" = set; then |
5001 | if test ${enable_everything+y} |
|
|
5002 | then : |
4443 | enableval=$enable_everything; |
5003 | enableval=$enable_everything; |
4444 | if test x$enableval = xno; then |
5004 | if test x$enableval = xno; then |
4445 | support_frills=no |
5005 | support_frills=no |
4446 | support_inheritpixmap=no |
5006 | support_inheritpixmap=no |
4447 | support_tinting=no |
|
|
4448 | support_fading=no |
5007 | support_fading=no |
4449 | support_keepscrolling=no |
5008 | support_keepscrolling=no |
4450 | support_selectionscrolling=no |
5009 | support_selectionscrolling=no |
4451 | support_lastlog=no |
|
|
4452 | support_mousewheel=no |
5010 | support_mousewheel=no |
4453 | support_mouseslipwheel=no |
5011 | support_mouseslipwheel=no |
4454 | support_text_blink=no |
5012 | support_text_blink=no |
4455 | support_pointer_blank=no |
5013 | support_pointer_blank=no |
4456 | support_scroll_rxvt=no |
5014 | support_scroll_rxvt=no |
4457 | support_scroll_next=no |
5015 | support_scroll_next=no |
4458 | support_scroll_xterm=no |
5016 | support_scroll_xterm=no |
4459 | support_scroll_plain=no |
|
|
4460 | support_utmp=no |
|
|
4461 | support_wtmp=no |
|
|
4462 | support_xim=no |
5017 | support_xim=no |
4463 | support_xpm=no |
5018 | support_pixbuf=no |
4464 | support_afterimage=no |
5019 | support_startup_notification=no |
4465 | support_afterstep=no |
|
|
4466 | support_xft=no |
5020 | support_xft=no |
4467 | support_unicode3=no |
5021 | support_unicode3=no |
4468 | support_combining=no |
5022 | support_combining=no |
4469 | support_8bitctrls=no |
5023 | support_8bitctrls=no |
4470 | support_iso14755=no |
5024 | support_iso14755=no |
… | |
… | |
4473 | codesets= |
5027 | codesets= |
4474 | fi |
5028 | fi |
4475 | if test x$enableval = xyes; then |
5029 | if test x$enableval = xyes; then |
4476 | support_frills=yes |
5030 | support_frills=yes |
4477 | support_inheritpixmap=yes |
5031 | support_inheritpixmap=yes |
4478 | support_tinting=yes |
|
|
4479 | support_fading=yes |
5032 | support_fading=yes |
4480 | support_keepscrolling=yes |
5033 | support_keepscrolling=yes |
4481 | support_selectionscrolling=yes |
5034 | support_selectionscrolling=yes |
4482 | support_lastlog=yes |
|
|
4483 | support_mousewheel=yes |
5035 | support_mousewheel=yes |
4484 | support_mouseslipwheel=yes |
5036 | support_mouseslipwheel=yes |
4485 | support_text_blink=yes |
5037 | support_text_blink=yes |
4486 | support_pointer_blank=yes |
5038 | support_pointer_blank=yes |
4487 | support_scroll_rxvt=yes |
5039 | support_scroll_rxvt=yes |
4488 | support_scroll_next=yes |
5040 | support_scroll_next=yes |
4489 | support_scroll_xterm=yes |
5041 | support_scroll_xterm=yes |
4490 | support_scroll_plain=yes |
|
|
4491 | support_utmp=yes |
|
|
4492 | support_wtmp=yes |
|
|
4493 | support_xim=yes |
5042 | support_xim=yes |
4494 | support_xpm=yes |
5043 | support_pixbuf=yes |
4495 | support_afterimage=yes |
5044 | support_startup_notification=yes |
4496 | support_afterstep=yes |
|
|
4497 | support_xft=yes |
5045 | support_xft=yes |
4498 | support_unicode3=yes |
5046 | support_unicode3=yes |
4499 | support_combining=yes |
5047 | support_combining=yes |
4500 | #support_8bitctrls=yes |
5048 | #support_8bitctrls=yes |
4501 | support_iso14755=yes |
5049 | support_iso14755=yes |
… | |
… | |
4505 | fi |
5053 | fi |
4506 | |
5054 | |
4507 | fi |
5055 | fi |
4508 | |
5056 | |
4509 | |
5057 | |
|
|
5058 | support_assertions=no |
|
|
5059 | # Check whether --enable-assert was given. |
|
|
5060 | if test ${enable_assert+y} |
|
|
5061 | then : |
|
|
5062 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
5063 | support_assertions=yes |
|
|
5064 | fi |
|
|
5065 | fi |
|
|
5066 | |
|
|
5067 | if test x$support_assertions = xno; then |
|
|
5068 | |
|
|
5069 | printf "%s\n" "#define NDEBUG 1" >>confdefs.h |
|
|
5070 | |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | support_warnings=no |
|
|
5074 | # Check whether --enable-warnings was given. |
|
|
5075 | if test ${enable_warnings+y} |
|
|
5076 | then : |
|
|
5077 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
5078 | support_warnings=yes |
|
|
5079 | fi |
|
|
5080 | fi |
|
|
5081 | |
|
|
5082 | if test x$GXX = xyes; then |
|
|
5083 | if test $support_warnings = yes; then |
|
|
5084 | save_CXXFLAGS="$CXXFLAGS" |
|
|
5085 | for warning in \ |
|
|
5086 | -Wall \ |
|
|
5087 | -Wno-parentheses \ |
|
|
5088 | -Wno-reorder \ |
|
|
5089 | -Wno-sign-compare \ |
|
|
5090 | -Wno-unused-value \ |
|
|
5091 | ; do |
|
|
5092 | CXXFLAGS="$CXXFLAGS $warning" |
|
|
5093 | done |
|
|
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5095 | /* end confdefs.h. */ |
|
|
5096 | |
|
|
5097 | int |
|
|
5098 | main (void) |
|
|
5099 | { |
|
|
5100 | |
|
|
5101 | ; |
|
|
5102 | return 0; |
|
|
5103 | } |
|
|
5104 | _ACEOF |
|
|
5105 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
5106 | then : |
|
|
5107 | |
|
|
5108 | else $as_nop |
|
|
5109 | CXXFLAGS="$save_CXXFLAGS" |
|
|
5110 | fi |
|
|
5111 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5112 | else |
|
|
5113 | CXXFLAGS="$CXXFLAGS -w" |
|
|
5114 | fi |
|
|
5115 | fi |
|
|
5116 | |
|
|
5117 | support_256_color=no |
|
|
5118 | # Check whether --enable-256-color was given. |
|
|
5119 | if test ${enable_256_color+y} |
|
|
5120 | then : |
|
|
5121 | enableval=$enable_256_color; if test x$enableval = xyes; then |
|
|
5122 | support_256_color=yes |
|
|
5123 | fi |
|
|
5124 | fi |
|
|
5125 | |
|
|
5126 | if test x$support_256_color = xyes; then |
|
|
5127 | |
|
|
5128 | printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h |
|
|
5129 | |
|
|
5130 | fi |
|
|
5131 | |
4510 | # Check whether --enable-unicode3 was given. |
5132 | # Check whether --enable-unicode3 was given. |
4511 | if test "${enable_unicode3+set}" = set; then |
5133 | if test ${enable_unicode3+y} |
|
|
5134 | then : |
4512 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
5135 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_unicode3=$enableval |
5136 | support_unicode3=$enableval |
4514 | fi |
5137 | fi |
4515 | fi |
5138 | fi |
4516 | |
5139 | |
4517 | |
5140 | |
4518 | # Check whether --enable-combining was given. |
5141 | # Check whether --enable-combining was given. |
4519 | if test "${enable_combining+set}" = set; then |
5142 | if test ${enable_combining+y} |
|
|
5143 | then : |
4520 | enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
5144 | enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then |
4521 | support_combining=$enableval |
5145 | support_combining=$enableval |
4522 | fi |
5146 | fi |
4523 | fi |
5147 | fi |
4524 | |
5148 | |
4525 | |
5149 | |
4526 | # Check whether --enable-xft was given. |
5150 | # Check whether --enable-xft was given. |
4527 | if test "${enable_xft+set}" = set; then |
5151 | if test ${enable_xft+y} |
|
|
5152 | then : |
4528 | enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
5153 | enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then |
4529 | support_xft=$enableval |
5154 | support_xft=$enableval |
4530 | fi |
5155 | fi |
4531 | fi |
5156 | fi |
4532 | |
5157 | |
4533 | |
5158 | |
4534 | # Check whether --enable-font-styles was given. |
5159 | # Check whether --enable-font-styles was given. |
4535 | if test "${enable_font_styles+set}" = set; then |
5160 | if test ${enable_font_styles+y} |
|
|
5161 | then : |
4536 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
5162 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4537 | support_styles=$enableval |
5163 | support_styles=$enableval |
4538 | fi |
5164 | fi |
4539 | fi |
5165 | fi |
4540 | |
5166 | |
4541 | |
5167 | |
4542 | # Check whether --enable-xpm-background was given. |
5168 | # Check whether --enable-pixbuf was given. |
4543 | if test "${enable_xpm_background+set}" = set; then |
5169 | if test ${enable_pixbuf+y} |
|
|
5170 | then : |
4544 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
5171 | enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then |
4545 | support_xpm=$enableval |
5172 | support_pixbuf=$enableval |
4546 | fi |
5173 | fi |
4547 | fi |
5174 | fi |
4548 | |
5175 | |
4549 | |
5176 | |
4550 | # Check whether --enable-afterimage was given. |
5177 | # Check whether --enable-startup-notification was given. |
4551 | if test "${enable_afterimage+set}" = set; then |
5178 | if test ${enable_startup_notification+y} |
|
|
5179 | then : |
4552 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
5180 | enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_afterimage=$enableval |
5181 | support_startup_notification=$enableval |
4554 | fi |
5182 | fi |
4555 | fi |
5183 | fi |
4556 | |
|
|
4557 | |
|
|
4558 | |
|
|
4559 | # Check whether --with-afterimage_config was given. |
|
|
4560 | if test "${with_afterimage_config+set}" = set; then |
|
|
4561 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4562 | afterimage_config=$withval/afterimage-config |
|
|
4563 | fi |
|
|
4564 | fi |
|
|
4565 | |
|
|
4566 | |
5184 | |
4567 | |
5185 | |
4568 | # Check whether --enable-transparency was given. |
5186 | # Check whether --enable-transparency was given. |
4569 | if test "${enable_transparency+set}" = set; then |
5187 | if test ${enable_transparency+y} |
|
|
5188 | then : |
4570 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
5189 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4571 | support_inheritpixmap=$enableval |
5190 | support_inheritpixmap=$enableval |
4572 | fi |
5191 | fi |
4573 | fi |
5192 | fi |
4574 | |
5193 | |
4575 | |
5194 | |
4576 | # Check whether --enable-tinting was given. |
|
|
4577 | if test "${enable_tinting+set}" = set; then |
|
|
4578 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4579 | support_tinting=$enableval |
|
|
4580 | fi |
|
|
4581 | fi |
|
|
4582 | |
|
|
4583 | |
|
|
4584 | # Check whether --enable-fading was given. |
5195 | # Check whether --enable-fading was given. |
4585 | if test "${enable_fading+set}" = set; then |
5196 | if test ${enable_fading+y} |
|
|
5197 | then : |
4586 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
5198 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4587 | support_fading=$enableval |
5199 | support_fading=$enableval |
4588 | fi |
5200 | fi |
4589 | fi |
5201 | fi |
4590 | |
5202 | |
4591 | |
5203 | |
4592 | # Check whether --enable-rxvt-scroll was given. |
5204 | # Check whether --enable-rxvt-scroll was given. |
4593 | if test "${enable_rxvt_scroll+set}" = set; then |
5205 | if test ${enable_rxvt_scroll+y} |
|
|
5206 | then : |
4594 | enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5207 | enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4595 | support_scroll_rxvt=$enableval |
5208 | support_scroll_rxvt=$enableval |
4596 | fi |
5209 | fi |
4597 | fi |
5210 | fi |
4598 | |
5211 | |
4599 | |
5212 | |
4600 | # Check whether --enable-next-scroll was given. |
5213 | # Check whether --enable-next-scroll was given. |
4601 | if test "${enable_next_scroll+set}" = set; then |
5214 | if test ${enable_next_scroll+y} |
|
|
5215 | then : |
4602 | enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5216 | enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4603 | support_scroll_next=$enableval |
5217 | support_scroll_next=$enableval |
4604 | fi |
5218 | fi |
4605 | fi |
5219 | fi |
4606 | |
5220 | |
4607 | |
5221 | |
4608 | # Check whether --enable-xterm-scroll was given. |
5222 | # Check whether --enable-xterm-scroll was given. |
4609 | if test "${enable_xterm_scroll+set}" = set; then |
5223 | if test ${enable_xterm_scroll+y} |
|
|
5224 | then : |
4610 | enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
5225 | enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
4611 | support_scroll_xterm=$enableval |
5226 | support_scroll_xterm=$enableval |
4612 | fi |
5227 | fi |
4613 | fi |
5228 | fi |
4614 | |
5229 | |
4615 | |
5230 | |
4616 | # Check whether --enable-perl was given. |
5231 | # Check whether --enable-perl was given. |
4617 | if test "${enable_perl+set}" = set; then |
5232 | if test ${enable_perl+y} |
|
|
5233 | then : |
4618 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
5234 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4619 | support_perl=$enableval |
5235 | support_perl=$enableval |
4620 | fi |
5236 | fi |
4621 | fi |
5237 | fi |
4622 | |
5238 | |
4623 | |
5239 | |
4624 | # Check whether --enable-plain-scroll was given. |
|
|
4625 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4626 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4627 | support_scroll_plain=$enableval |
|
|
4628 | fi |
|
|
4629 | fi |
|
|
4630 | |
|
|
4631 | |
|
|
4632 | |
5240 | |
4633 | # Check whether --with-codesets was given. |
5241 | # Check whether --with-codesets was given. |
4634 | if test "${with_codesets+set}" = set; then |
5242 | if test ${with_codesets+y} |
|
|
5243 | then : |
4635 | withval=$with_codesets; codesets="$withval" |
5244 | withval=$with_codesets; codesets="$withval" |
4636 | fi |
5245 | fi |
4637 | |
5246 | |
4638 | |
5247 | |
4639 | # Check whether --enable-xim was given. |
5248 | # Check whether --enable-xim was given. |
4640 | if test "${enable_xim+set}" = set; then |
5249 | if test ${enable_xim+y} |
|
|
5250 | then : |
4641 | enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
5251 | enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then |
4642 | support_xim=$enableval |
5252 | support_xim=$enableval |
4643 | fi |
5253 | fi |
4644 | fi |
5254 | fi |
4645 | |
5255 | |
4646 | |
5256 | |
4647 | # Check whether --enable-backspace-key was given. |
5257 | # Check whether --enable-backspace-key was given. |
4648 | if test "${enable_backspace_key+set}" = set; then |
5258 | if test ${enable_backspace_key+y} |
|
|
5259 | then : |
4649 | enableval=$enable_backspace_key; if test x$enableval = xno; then |
5260 | enableval=$enable_backspace_key; if test x$enableval = xno; then |
4650 | |
5261 | |
4651 | cat >>confdefs.h <<\_ACEOF |
5262 | printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h |
4652 | #define NO_BACKSPACE_KEY 1 |
|
|
4653 | _ACEOF |
|
|
4654 | |
5263 | |
4655 | fi |
5264 | fi |
4656 | fi |
5265 | fi |
4657 | |
5266 | |
4658 | |
5267 | |
4659 | # Check whether --enable-delete-key was given. |
5268 | # Check whether --enable-delete-key was given. |
4660 | if test "${enable_delete_key+set}" = set; then |
5269 | if test ${enable_delete_key+y} |
|
|
5270 | then : |
4661 | enableval=$enable_delete_key; if test x$enableval = xno; then |
5271 | enableval=$enable_delete_key; if test x$enableval = xno; then |
4662 | |
5272 | |
4663 | cat >>confdefs.h <<\_ACEOF |
5273 | printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h |
4664 | #define NO_DELETE_KEY 1 |
|
|
4665 | _ACEOF |
|
|
4666 | |
5274 | |
4667 | fi |
5275 | fi |
4668 | fi |
5276 | fi |
4669 | |
5277 | |
4670 | |
5278 | |
|
|
5279 | support_resources=yes |
4671 | # Check whether --enable-resources was given. |
5280 | # Check whether --enable-resources was given. |
4672 | if test "${enable_resources+set}" = set; then |
5281 | if test ${enable_resources+y} |
|
|
5282 | then : |
4673 | enableval=$enable_resources; if test x$enableval = xno; then |
5283 | enableval=$enable_resources; if test x$enableval = xno; then |
4674 | |
5284 | support_resources=no |
4675 | cat >>confdefs.h <<\_ACEOF |
|
|
4676 | #define NO_RESOURCES 1 |
|
|
4677 | _ACEOF |
|
|
4678 | |
|
|
4679 | fi |
5285 | fi |
4680 | fi |
5286 | fi |
4681 | |
5287 | |
4682 | |
5288 | |
4683 | # Check whether --enable-8bitctrls was given. |
5289 | # Check whether --enable-8bitctrls was given. |
4684 | if test "${enable_8bitctrls+set}" = set; then |
5290 | if test ${enable_8bitctrls+y} |
|
|
5291 | then : |
4685 | enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
5292 | enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then |
4686 | support_8bitctrls=$enableval |
5293 | support_8bitctrls=$enableval |
4687 | fi |
5294 | fi |
4688 | fi |
5295 | fi |
4689 | |
5296 | |
4690 | |
5297 | |
4691 | RESFALLBACK=Rxvt |
5298 | RESFALLBACK=Rxvt |
4692 | # Check whether --enable-fallback was given. |
5299 | # Check whether --enable-fallback was given. |
4693 | if test "${enable_fallback+set}" = set; then |
5300 | if test ${enable_fallback+y} |
|
|
5301 | then : |
4694 | enableval=$enable_fallback; |
5302 | enableval=$enable_fallback; |
4695 | test x$enableval = xyes && enableval=Rxvt |
5303 | test x$enableval = xyes && enableval=Rxvt |
4696 | test x$enableval = xno && enableval= |
5304 | test x$enableval = xno && enableval= |
4697 | RESFALLBACK="$enableval" |
5305 | RESFALLBACK="$enableval" |
4698 | |
5306 | |
4699 | fi |
5307 | fi |
4700 | |
5308 | |
4701 | |
5309 | |
4702 | if test x$RESFALLBACK != x; then |
5310 | if test x$RESFALLBACK != x; then |
4703 | |
5311 | |
4704 | cat >>confdefs.h <<_ACEOF |
5312 | printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h |
4705 | #define RESFALLBACK "$RESFALLBACK" |
|
|
4706 | _ACEOF |
|
|
4707 | |
5313 | |
4708 | fi |
5314 | fi |
4709 | |
5315 | |
4710 | RESNAME=urxvt |
5316 | RESNAME=urxvt |
4711 | |
5317 | |
4712 | # Check whether --with-res-name was given. |
5318 | # Check whether --with-res-name was given. |
4713 | if test "${with_res_name+set}" = set; then |
5319 | if test ${with_res_name+y} |
|
|
5320 | then : |
4714 | withval=$with_res_name; RESNAME="$withval" |
5321 | withval=$with_res_name; RESNAME="$withval" |
4715 | fi |
5322 | fi |
4716 | |
5323 | |
4717 | |
5324 | |
4718 | cat >>confdefs.h <<_ACEOF |
5325 | printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h |
4719 | #define RESNAME "$RESNAME" |
|
|
4720 | _ACEOF |
|
|
4721 | |
5326 | |
4722 | |
5327 | |
4723 | RESCLASS=URxvt |
5328 | RESCLASS=URxvt |
4724 | |
5329 | |
4725 | # Check whether --with-res-class was given. |
5330 | # Check whether --with-res-class was given. |
4726 | if test "${with_res_class+set}" = set; then |
5331 | if test ${with_res_class+y} |
|
|
5332 | then : |
4727 | withval=$with_res_class; RESCLASS="$withval" |
5333 | withval=$with_res_class; RESCLASS="$withval" |
4728 | fi |
5334 | fi |
4729 | |
5335 | |
4730 | |
5336 | |
4731 | cat >>confdefs.h <<_ACEOF |
5337 | printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h |
4732 | #define RESCLASS "$RESCLASS" |
|
|
4733 | _ACEOF |
|
|
4734 | |
5338 | |
4735 | |
5339 | |
4736 | RXVTNAME=urxvt |
5340 | RXVTNAME=urxvt |
4737 | |
5341 | |
4738 | # Check whether --with-name was given. |
5342 | # Check whether --with-name was given. |
4739 | if test "${with_name+set}" = set; then |
5343 | if test ${with_name+y} |
|
|
5344 | then : |
4740 | withval=$with_name; RXVTNAME="$withval" |
5345 | withval=$with_name; RXVTNAME="$withval" |
4741 | fi |
5346 | fi |
4742 | |
5347 | |
4743 | |
5348 | |
4744 | cat >>confdefs.h <<_ACEOF |
5349 | printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h |
4745 | #define RXVTNAME "$RXVTNAME" |
|
|
4746 | _ACEOF |
|
|
4747 | |
5350 | |
4748 | |
5351 | |
4749 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
4750 | |
5352 | |
4751 | |
5353 | |
4752 | # Check whether --enable-swapscreen was given. |
5354 | # Check whether --enable-swapscreen was given. |
4753 | if test "${enable_swapscreen+set}" = set; then |
5355 | if test ${enable_swapscreen+y} |
|
|
5356 | then : |
4754 | enableval=$enable_swapscreen; if test x$enableval = xno; then |
5357 | enableval=$enable_swapscreen; if test x$enableval = xno; then |
4755 | |
5358 | |
4756 | cat >>confdefs.h <<\_ACEOF |
5359 | printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h |
4757 | #define NO_SECONDARY_SCREEN 1 |
|
|
4758 | _ACEOF |
|
|
4759 | |
5360 | |
4760 | fi |
5361 | fi |
4761 | fi |
5362 | fi |
4762 | |
5363 | |
4763 | |
5364 | |
4764 | # Check whether --enable-iso14755 was given. |
5365 | # Check whether --enable-iso14755 was given. |
4765 | if test "${enable_iso14755+set}" = set; then |
5366 | if test ${enable_iso14755+y} |
|
|
5367 | then : |
4766 | enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
5368 | enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then |
4767 | support_iso14755=$enableval |
5369 | support_iso14755=$enableval |
4768 | fi |
5370 | fi |
4769 | fi |
5371 | fi |
4770 | |
5372 | |
4771 | |
5373 | |
4772 | # Check whether --enable-frills was given. |
5374 | # Check whether --enable-frills was given. |
4773 | if test "${enable_frills+set}" = set; then |
5375 | if test ${enable_frills+y} |
|
|
5376 | then : |
4774 | enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
5377 | enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then |
4775 | support_frills=$enableval |
5378 | support_frills=$enableval |
4776 | fi |
5379 | fi |
4777 | fi |
5380 | fi |
4778 | |
5381 | |
4779 | |
5382 | |
4780 | # Check whether --enable-keepscrolling was given. |
5383 | # Check whether --enable-keepscrolling was given. |
4781 | if test "${enable_keepscrolling+set}" = set; then |
5384 | if test ${enable_keepscrolling+y} |
|
|
5385 | then : |
4782 | enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5386 | enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4783 | support_keepscrolling=$enableval |
5387 | support_keepscrolling=$enableval |
4784 | fi |
5388 | fi |
4785 | fi |
5389 | fi |
4786 | |
5390 | |
4787 | |
5391 | |
4788 | # Check whether --enable-selectionscrolling was given. |
5392 | # Check whether --enable-selectionscrolling was given. |
4789 | if test "${enable_selectionscrolling+set}" = set; then |
5393 | if test ${enable_selectionscrolling+y} |
|
|
5394 | then : |
4790 | enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
5395 | enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then |
4791 | support_selectionscrolling=$enableval |
5396 | support_selectionscrolling=$enableval |
4792 | fi |
5397 | fi |
4793 | fi |
5398 | fi |
4794 | |
5399 | |
4795 | |
5400 | |
4796 | # Check whether --enable-mousewheel was given. |
5401 | # Check whether --enable-mousewheel was given. |
4797 | if test "${enable_mousewheel+set}" = set; then |
5402 | if test ${enable_mousewheel+y} |
|
|
5403 | then : |
4798 | enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
5404 | enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then |
4799 | support_mousewheel=$enableval |
5405 | support_mousewheel=$enableval |
4800 | fi |
5406 | fi |
4801 | fi |
5407 | fi |
4802 | |
5408 | |
4803 | |
5409 | |
4804 | # Check whether --enable-slipwheeling was given. |
5410 | # Check whether --enable-slipwheeling was given. |
4805 | if test "${enable_slipwheeling+set}" = set; then |
5411 | if test ${enable_slipwheeling+y} |
|
|
5412 | then : |
4806 | enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
5413 | enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then |
4807 | support_mouseslipwheel=$enableval |
5414 | support_mouseslipwheel=$enableval |
4808 | fi |
5415 | fi |
4809 | fi |
5416 | fi |
4810 | |
5417 | |
4811 | |
5418 | |
4812 | # Check whether --enable-smart-resize was given. |
5419 | # Check whether --enable-smart-resize was given. |
4813 | if test "${enable_smart_resize+set}" = set; then |
5420 | if test ${enable_smart_resize+y} |
|
|
5421 | then : |
4814 | enableval=$enable_smart_resize; if test x$enableval = xyes; then |
5422 | enableval=$enable_smart_resize; if test x$enableval = xyes; then |
4815 | |
5423 | |
4816 | cat >>confdefs.h <<\_ACEOF |
5424 | printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h |
4817 | #define SMART_RESIZE 1 |
|
|
4818 | _ACEOF |
|
|
4819 | |
5425 | |
4820 | fi |
5426 | fi |
4821 | fi |
5427 | fi |
4822 | |
5428 | |
4823 | |
5429 | |
4824 | # Check whether --enable-text-blink was given. |
5430 | # Check whether --enable-text-blink was given. |
4825 | if test "${enable_text_blink+set}" = set; then |
5431 | if test ${enable_text_blink+y} |
|
|
5432 | then : |
4826 | enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
5433 | enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then |
4827 | support_text_blink=$enableval |
5434 | support_text_blink=$enableval |
4828 | fi |
5435 | fi |
4829 | fi |
5436 | fi |
4830 | |
5437 | |
4831 | |
5438 | |
4832 | # Check whether --enable-pointer-blank was given. |
5439 | # Check whether --enable-pointer-blank was given. |
4833 | if test "${enable_pointer_blank+set}" = set; then |
5440 | if test ${enable_pointer_blank+y} |
|
|
5441 | then : |
4834 | enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
5442 | enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then |
4835 | support_pointer_blank=$enableval |
5443 | support_pointer_blank=$enableval |
4836 | fi |
5444 | fi |
4837 | fi |
5445 | fi |
4838 | |
5446 | |
4839 | |
5447 | |
4840 | |
5448 | |
4841 | # Check whether --with-term was given. |
5449 | # Check whether --with-term was given. |
4842 | if test "${with_term+set}" = set; then |
5450 | if test ${with_term+y} |
|
|
5451 | then : |
4843 | withval=$with_term; if test x$withval != x; then |
5452 | withval=$with_term; if test x$withval != x; then |
4844 | |
5453 | |
4845 | cat >>confdefs.h <<_ACEOF |
5454 | printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h |
4846 | #define TERMENV "$withval" |
5455 | term="$withval" |
|
|
5456 | fi |
|
|
5457 | fi |
|
|
5458 | |
|
|
5459 | |
|
|
5460 | |
|
|
5461 | # Check whether --with-terminfo was given. |
|
|
5462 | if test ${with_terminfo+y} |
|
|
5463 | then : |
|
|
5464 | withval=$with_terminfo; if test x$withval != x; then |
|
|
5465 | |
|
|
5466 | printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h |
|
|
5467 | terminfo="$withval" |
|
|
5468 | fi |
|
|
5469 | fi |
|
|
5470 | |
|
|
5471 | |
|
|
5472 | if test x$support_resources = xno; then |
|
|
5473 | if test x$support_frills = xyes || test x$support_perl = xyes; then |
|
|
5474 | as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5 |
|
|
5475 | fi |
|
|
5476 | |
|
|
5477 | |
|
|
5478 | printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h |
|
|
5479 | |
|
|
5480 | fi |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
5484 | |
|
|
5485 | ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
|
|
5486 | if test "x$ac_cv_header_sys_inotify_h" = xyes |
|
|
5487 | then : |
|
|
5488 | printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h |
|
|
5489 | |
|
|
5490 | fi |
|
|
5491 | ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
|
|
5492 | if test "x$ac_cv_header_sys_epoll_h" = xyes |
|
|
5493 | then : |
|
|
5494 | printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
|
|
5495 | |
|
|
5496 | fi |
|
|
5497 | ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
|
|
5498 | if test "x$ac_cv_header_sys_event_h" = xyes |
|
|
5499 | then : |
|
|
5500 | printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
|
|
5501 | |
|
|
5502 | fi |
|
|
5503 | ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" |
|
|
5504 | if test "x$ac_cv_header_port_h" = xyes |
|
|
5505 | then : |
|
|
5506 | printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h |
|
|
5507 | |
|
|
5508 | fi |
|
|
5509 | ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
|
|
5510 | if test "x$ac_cv_header_poll_h" = xyes |
|
|
5511 | then : |
|
|
5512 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
|
|
5513 | |
|
|
5514 | fi |
|
|
5515 | ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
|
|
5516 | if test "x$ac_cv_header_sys_timerfd_h" = xyes |
|
|
5517 | then : |
|
|
5518 | printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h |
|
|
5519 | |
|
|
5520 | fi |
|
|
5521 | |
|
|
5522 | ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
|
|
5523 | if test "x$ac_cv_header_sys_select_h" = xyes |
|
|
5524 | then : |
|
|
5525 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
|
|
5526 | |
|
|
5527 | fi |
|
|
5528 | ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
|
|
5529 | if test "x$ac_cv_header_sys_eventfd_h" = xyes |
|
|
5530 | then : |
|
|
5531 | printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
|
|
5532 | |
|
|
5533 | fi |
|
|
5534 | ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default" |
|
|
5535 | if test "x$ac_cv_header_sys_signalfd_h" = xyes |
|
|
5536 | then : |
|
|
5537 | printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h |
|
|
5538 | |
|
|
5539 | fi |
|
|
5540 | ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default" |
|
|
5541 | if test "x$ac_cv_header_linux_aio_abi_h" = xyes |
|
|
5542 | then : |
|
|
5543 | printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h |
|
|
5544 | |
|
|
5545 | fi |
|
|
5546 | ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
|
|
5547 | if test "x$ac_cv_header_linux_fs_h" = xyes |
|
|
5548 | then : |
|
|
5549 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
5550 | |
|
|
5551 | fi |
|
|
5552 | |
|
|
5553 | |
|
|
5554 | ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" |
|
|
5555 | if test "x$ac_cv_func_inotify_init" = xyes |
|
|
5556 | then : |
|
|
5557 | printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h |
|
|
5558 | |
|
|
5559 | fi |
|
|
5560 | ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" |
|
|
5561 | if test "x$ac_cv_func_epoll_ctl" = xyes |
|
|
5562 | then : |
|
|
5563 | printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h |
|
|
5564 | |
|
|
5565 | fi |
|
|
5566 | ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" |
|
|
5567 | if test "x$ac_cv_func_kqueue" = xyes |
|
|
5568 | then : |
|
|
5569 | printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h |
|
|
5570 | |
|
|
5571 | fi |
|
|
5572 | ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create" |
|
|
5573 | if test "x$ac_cv_func_port_create" = xyes |
|
|
5574 | then : |
|
|
5575 | printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h |
|
|
5576 | |
|
|
5577 | fi |
|
|
5578 | ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll" |
|
|
5579 | if test "x$ac_cv_func_poll" = xyes |
|
|
5580 | then : |
|
|
5581 | printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
|
|
5582 | |
|
|
5583 | fi |
|
|
5584 | ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select" |
|
|
5585 | if test "x$ac_cv_func_select" = xyes |
|
|
5586 | then : |
|
|
5587 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
|
|
5588 | |
|
|
5589 | fi |
|
|
5590 | ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
|
|
5591 | if test "x$ac_cv_func_eventfd" = xyes |
|
|
5592 | then : |
|
|
5593 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
5594 | |
|
|
5595 | fi |
|
|
5596 | ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd" |
|
|
5597 | if test "x$ac_cv_func_signalfd" = xyes |
|
|
5598 | then : |
|
|
5599 | printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h |
|
|
5600 | |
|
|
5601 | fi |
|
|
5602 | |
|
|
5603 | |
|
|
5604 | |
|
|
5605 | for ac_func in clock_gettime |
|
|
5606 | do : |
|
|
5607 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
|
|
5608 | if test "x$ac_cv_func_clock_gettime" = xyes |
|
|
5609 | then : |
|
|
5610 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
|
|
5611 | |
|
|
5612 | else $as_nop |
|
|
5613 | |
|
|
5614 | if test $(uname) = Linux; then |
|
|
5615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 |
|
|
5616 | printf %s "checking for clock_gettime syscall... " >&6; } |
|
|
5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5618 | /* end confdefs.h. */ |
|
|
5619 | #include <unistd.h> |
|
|
5620 | #include <sys/syscall.h> |
|
|
5621 | #include <time.h> |
|
|
5622 | int |
|
|
5623 | main (void) |
|
|
5624 | { |
|
|
5625 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5626 | ; |
|
|
5627 | return 0; |
|
|
5628 | } |
4847 | _ACEOF |
5629 | _ACEOF |
4848 | term="$withval" |
5630 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5631 | then : |
|
|
5632 | ac_have_clock_syscall=1 |
|
|
5633 | |
|
|
5634 | printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h |
|
|
5635 | |
|
|
5636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
5637 | printf "%s\n" "yes" >&6; } |
|
|
5638 | else $as_nop |
|
|
5639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
5640 | printf "%s\n" "no" >&6; } |
|
|
5641 | fi |
|
|
5642 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5643 | conftest$ac_exeext conftest.$ac_ext |
4849 | fi |
5644 | fi |
4850 | fi |
5645 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
|
|
5647 | printf %s "checking for clock_gettime in -lrt... " >&6; } |
|
|
5648 | if test ${ac_cv_lib_rt_clock_gettime+y} |
|
|
5649 | then : |
|
|
5650 | printf %s "(cached) " >&6 |
|
|
5651 | else $as_nop |
|
|
5652 | ac_check_lib_save_LIBS=$LIBS |
|
|
5653 | LIBS="-lrt $LIBS" |
|
|
5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5655 | /* end confdefs.h. */ |
4851 | |
5656 | |
4852 | |
5657 | namespace conftest { |
4853 | |
5658 | extern "C" int clock_gettime (); |
4854 | # Check whether --with-terminfo was given. |
5659 | } |
4855 | if test "${with_terminfo+set}" = set; then |
5660 | int |
4856 | withval=$with_terminfo; if test x$withval != x; then |
5661 | main (void) |
4857 | |
5662 | { |
4858 | cat >>confdefs.h <<_ACEOF |
5663 | return conftest::clock_gettime (); |
4859 | #define RXVT_TERMINFO "$withval" |
5664 | ; |
|
|
5665 | return 0; |
|
|
5666 | } |
4860 | _ACEOF |
5667 | _ACEOF |
4861 | terminfo="$withval" |
5668 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5669 | then : |
|
|
5670 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5671 | else $as_nop |
|
|
5672 | ac_cv_lib_rt_clock_gettime=no |
|
|
5673 | fi |
|
|
5674 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5675 | conftest$ac_exeext conftest.$ac_ext |
|
|
5676 | LIBS=$ac_check_lib_save_LIBS |
|
|
5677 | fi |
|
|
5678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5679 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5680 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
|
|
5681 | then : |
|
|
5682 | printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
|
|
5683 | |
|
|
5684 | LIBS="-lrt $LIBS" |
|
|
5685 | |
|
|
5686 | fi |
|
|
5687 | |
|
|
5688 | unset ac_cv_func_clock_gettime |
|
|
5689 | ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
|
|
5690 | if test "x$ac_cv_func_clock_gettime" = xyes |
|
|
5691 | then : |
|
|
5692 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
|
|
5693 | |
|
|
5694 | fi |
|
|
5695 | |
4862 | fi |
5696 | fi |
|
|
5697 | |
4863 | fi |
5698 | fi |
|
|
5699 | |
|
|
5700 | done |
|
|
5701 | |
|
|
5702 | |
|
|
5703 | for ac_func in nanosleep |
|
|
5704 | do : |
|
|
5705 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
|
|
5706 | if test "x$ac_cv_func_nanosleep" = xyes |
|
|
5707 | then : |
|
|
5708 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
|
|
5709 | |
|
|
5710 | else $as_nop |
|
|
5711 | |
|
|
5712 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
|
|
5714 | printf %s "checking for nanosleep in -lrt... " >&6; } |
|
|
5715 | if test ${ac_cv_lib_rt_nanosleep+y} |
|
|
5716 | then : |
|
|
5717 | printf %s "(cached) " >&6 |
|
|
5718 | else $as_nop |
|
|
5719 | ac_check_lib_save_LIBS=$LIBS |
|
|
5720 | LIBS="-lrt $LIBS" |
|
|
5721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5722 | /* end confdefs.h. */ |
|
|
5723 | |
|
|
5724 | namespace conftest { |
|
|
5725 | extern "C" int nanosleep (); |
|
|
5726 | } |
|
|
5727 | int |
|
|
5728 | main (void) |
|
|
5729 | { |
|
|
5730 | return conftest::nanosleep (); |
|
|
5731 | ; |
|
|
5732 | return 0; |
|
|
5733 | } |
|
|
5734 | _ACEOF |
|
|
5735 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5736 | then : |
|
|
5737 | ac_cv_lib_rt_nanosleep=yes |
|
|
5738 | else $as_nop |
|
|
5739 | ac_cv_lib_rt_nanosleep=no |
|
|
5740 | fi |
|
|
5741 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5742 | conftest$ac_exeext conftest.$ac_ext |
|
|
5743 | LIBS=$ac_check_lib_save_LIBS |
|
|
5744 | fi |
|
|
5745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5746 | printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5747 | if test "x$ac_cv_lib_rt_nanosleep" = xyes |
|
|
5748 | then : |
|
|
5749 | printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
|
|
5750 | |
|
|
5751 | LIBS="-lrt $LIBS" |
|
|
5752 | |
|
|
5753 | fi |
|
|
5754 | |
|
|
5755 | unset ac_cv_func_nanosleep |
|
|
5756 | ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
|
|
5757 | if test "x$ac_cv_func_nanosleep" = xyes |
|
|
5758 | then : |
|
|
5759 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
|
|
5760 | |
|
|
5761 | fi |
|
|
5762 | |
|
|
5763 | fi |
|
|
5764 | |
|
|
5765 | fi |
|
|
5766 | |
|
|
5767 | done |
|
|
5768 | |
|
|
5769 | ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h> |
|
|
5770 | " |
|
|
5771 | if test "x$ac_cv_type___kernel_rwf_t" = xyes |
|
|
5772 | then : |
|
|
5773 | |
|
|
5774 | |
|
|
5775 | printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h |
|
|
5776 | |
|
|
5777 | |
|
|
5778 | fi |
|
|
5779 | |
|
|
5780 | |
|
|
5781 | if test -z "$LIBEV_M4_AVOID_LIBM"; then |
|
|
5782 | LIBM=m |
|
|
5783 | fi |
|
|
5784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 |
|
|
5785 | printf %s "checking for library containing floor... " >&6; } |
|
|
5786 | if test ${ac_cv_search_floor+y} |
|
|
5787 | then : |
|
|
5788 | printf %s "(cached) " >&6 |
|
|
5789 | else $as_nop |
|
|
5790 | ac_func_search_save_LIBS=$LIBS |
|
|
5791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5792 | /* end confdefs.h. */ |
|
|
5793 | |
|
|
5794 | namespace conftest { |
|
|
5795 | extern "C" int floor (); |
|
|
5796 | } |
|
|
5797 | int |
|
|
5798 | main (void) |
|
|
5799 | { |
|
|
5800 | return conftest::floor (); |
|
|
5801 | ; |
|
|
5802 | return 0; |
|
|
5803 | } |
|
|
5804 | _ACEOF |
|
|
5805 | for ac_lib in '' $LIBM |
|
|
5806 | do |
|
|
5807 | if test -z "$ac_lib"; then |
|
|
5808 | ac_res="none required" |
|
|
5809 | else |
|
|
5810 | ac_res=-l$ac_lib |
|
|
5811 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
5812 | fi |
|
|
5813 | if ac_fn_cxx_try_link "$LINENO" |
|
|
5814 | then : |
|
|
5815 | ac_cv_search_floor=$ac_res |
|
|
5816 | fi |
|
|
5817 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5818 | conftest$ac_exeext |
|
|
5819 | if test ${ac_cv_search_floor+y} |
|
|
5820 | then : |
|
|
5821 | break |
|
|
5822 | fi |
|
|
5823 | done |
|
|
5824 | if test ${ac_cv_search_floor+y} |
|
|
5825 | then : |
|
|
5826 | |
|
|
5827 | else $as_nop |
|
|
5828 | ac_cv_search_floor=no |
|
|
5829 | fi |
|
|
5830 | rm conftest.$ac_ext |
|
|
5831 | LIBS=$ac_func_search_save_LIBS |
|
|
5832 | fi |
|
|
5833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 |
|
|
5834 | printf "%s\n" "$ac_cv_search_floor" >&6; } |
|
|
5835 | ac_res=$ac_cv_search_floor |
|
|
5836 | if test "$ac_res" != no |
|
|
5837 | then : |
|
|
5838 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
5839 | |
|
|
5840 | printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h |
|
|
5841 | |
|
|
5842 | fi |
|
|
5843 | |
|
|
5844 | |
4864 | |
5845 | |
4865 | |
5846 | |
4866 | |
5847 | |
4867 | # Extract the first word of "tic", so it can be a program name with args. |
5848 | # Extract the first word of "tic", so it can be a program name with args. |
4868 | set dummy tic; ac_word=$2 |
5849 | set dummy tic; ac_word=$2 |
4869 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5851 | printf %s "checking for $ac_word... " >&6; } |
4871 | if test "${ac_cv_path_TIC+set}" = set; then |
5852 | if test ${ac_cv_path_TIC+y} |
4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5853 | then : |
4873 | else |
5854 | printf %s "(cached) " >&6 |
|
|
5855 | else $as_nop |
4874 | case $TIC in |
5856 | case $TIC in |
4875 | [\\/]* | ?:[\\/]*) |
5857 | [\\/]* | ?:[\\/]*) |
4876 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
5858 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
4877 | ;; |
5859 | ;; |
4878 | *) |
5860 | *) |
4879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4880 | for as_dir in $PATH |
5862 | for as_dir in $PATH |
4881 | do |
5863 | do |
4882 | IFS=$as_save_IFS |
5864 | IFS=$as_save_IFS |
4883 | test -z "$as_dir" && as_dir=. |
5865 | case $as_dir in #((( |
|
|
5866 | '') as_dir=./ ;; |
|
|
5867 | */) ;; |
|
|
5868 | *) as_dir=$as_dir/ ;; |
|
|
5869 | esac |
4884 | for ac_exec_ext in '' $ac_executable_extensions; do |
5870 | for ac_exec_ext in '' $ac_executable_extensions; do |
4885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5871 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4886 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
5872 | ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext" |
4887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4888 | break 2 |
5874 | break 2 |
4889 | fi |
5875 | fi |
4890 | done |
5876 | done |
4891 | done |
5877 | done |
4892 | IFS=$as_save_IFS |
5878 | IFS=$as_save_IFS |
4893 | |
5879 | |
|
|
5880 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4894 | ;; |
5881 | ;; |
4895 | esac |
5882 | esac |
4896 | fi |
5883 | fi |
4897 | TIC=$ac_cv_path_TIC |
5884 | TIC=$ac_cv_path_TIC |
4898 | if test -n "$TIC"; then |
5885 | if test -n "$TIC"; then |
4899 | { echo "$as_me:$LINENO: result: $TIC" >&5 |
5886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5 |
4900 | echo "${ECHO_T}$TIC" >&6; } |
5887 | printf "%s\n" "$TIC" >&6; } |
4901 | else |
5888 | else |
4902 | { echo "$as_me:$LINENO: result: no" >&5 |
5889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4903 | echo "${ECHO_T}no" >&6; } |
5890 | printf "%s\n" "no" >&6; } |
4904 | fi |
5891 | fi |
4905 | |
|
|
4906 | |
|
|
4907 | |
5892 | |
4908 | |
5893 | |
4909 | |
5894 | |
4910 | ac_ext=cpp |
5895 | ac_ext=cpp |
4911 | ac_cpp='$CXXCPP $CPPFLAGS' |
5896 | ac_cpp='$CXXCPP $CPPFLAGS' |
4912 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4913 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4914 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4915 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
4916 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
5901 | printf %s "checking how to run the C++ preprocessor... " >&6; } |
4917 | if test -z "$CXXCPP"; then |
5902 | if test -z "$CXXCPP"; then |
4918 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5903 | if test ${ac_cv_prog_CXXCPP+y} |
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5904 | then : |
4920 | else |
5905 | printf %s "(cached) " >&6 |
|
|
5906 | else $as_nop |
4921 | # Double quotes because CXXCPP needs to be expanded |
5907 | # Double quotes because $CXX needs to be expanded |
4922 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5908 | for CXXCPP in "$CXX -E" cpp /lib/cpp |
4923 | do |
5909 | do |
4924 | ac_preproc_ok=false |
5910 | ac_preproc_ok=false |
4925 | for ac_cxx_preproc_warn_flag in '' yes |
5911 | for ac_cxx_preproc_warn_flag in '' yes |
4926 | do |
5912 | do |
4927 | # Use a header file that comes with gcc, so configuring glibc |
5913 | # Use a header file that comes with gcc, so configuring glibc |
4928 | # with a fresh cross-compiler works. |
5914 | # with a fresh cross-compiler works. |
4929 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4930 | # <limits.h> exists even on freestanding compilers. |
|
|
4931 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5915 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4932 | # not just through cpp. "Syntax error" is here to catch this case. |
5916 | # not just through cpp. "Syntax error" is here to catch this case. |
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
5917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
5918 | /* end confdefs.h. */ |
4939 | #ifdef __STDC__ |
|
|
4940 | # include <limits.h> |
5919 | #include <limits.h> |
4941 | #else |
|
|
4942 | # include <assert.h> |
|
|
4943 | #endif |
|
|
4944 | Syntax error |
5920 | Syntax error |
4945 | _ACEOF |
5921 | _ACEOF |
4946 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5922 | if ac_fn_cxx_try_cpp "$LINENO" |
4947 | case "(($ac_try" in |
5923 | then : |
4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4949 | *) ac_try_echo=$ac_try;; |
|
|
4950 | esac |
|
|
4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4953 | ac_status=$? |
|
|
4954 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4955 | rm -f conftest.er1 |
|
|
4956 | cat conftest.err >&5 |
|
|
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4958 | (exit $ac_status); } >/dev/null && { |
|
|
4959 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4960 | test ! -s conftest.err |
|
|
4961 | }; then |
|
|
4962 | : |
|
|
4963 | else |
|
|
4964 | echo "$as_me: failed program was:" >&5 |
|
|
4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4966 | |
5924 | |
|
|
5925 | else $as_nop |
4967 | # Broken: fails on valid input. |
5926 | # Broken: fails on valid input. |
4968 | continue |
5927 | continue |
4969 | fi |
5928 | fi |
4970 | |
|
|
4971 | rm -f conftest.err conftest.$ac_ext |
5929 | rm -f conftest.err conftest.i conftest.$ac_ext |
4972 | |
5930 | |
4973 | # OK, works on sane cases. Now check whether nonexistent headers |
5931 | # OK, works on sane cases. Now check whether nonexistent headers |
4974 | # can be detected and how. |
5932 | # can be detected and how. |
4975 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4976 | /* confdefs.h. */ |
|
|
4977 | _ACEOF |
|
|
4978 | cat confdefs.h >>conftest.$ac_ext |
5933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4979 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4980 | /* end confdefs.h. */ |
5934 | /* end confdefs.h. */ |
4981 | #include <ac_nonexistent.h> |
5935 | #include <ac_nonexistent.h> |
4982 | _ACEOF |
5936 | _ACEOF |
4983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5937 | if ac_fn_cxx_try_cpp "$LINENO" |
4984 | case "(($ac_try" in |
5938 | then : |
4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4986 | *) ac_try_echo=$ac_try;; |
|
|
4987 | esac |
|
|
4988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4989 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4990 | ac_status=$? |
|
|
4991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4992 | rm -f conftest.er1 |
|
|
4993 | cat conftest.err >&5 |
|
|
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4995 | (exit $ac_status); } >/dev/null && { |
|
|
4996 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4997 | test ! -s conftest.err |
|
|
4998 | }; then |
|
|
4999 | # Broken: success on invalid input. |
5939 | # Broken: success on invalid input. |
5000 | continue |
5940 | continue |
5001 | else |
5941 | else $as_nop |
5002 | echo "$as_me: failed program was:" >&5 |
|
|
5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5004 | |
|
|
5005 | # Passes both tests. |
5942 | # Passes both tests. |
5006 | ac_preproc_ok=: |
5943 | ac_preproc_ok=: |
5007 | break |
5944 | break |
5008 | fi |
5945 | fi |
5009 | |
|
|
5010 | rm -f conftest.err conftest.$ac_ext |
5946 | rm -f conftest.err conftest.i conftest.$ac_ext |
5011 | |
5947 | |
5012 | done |
5948 | done |
5013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5949 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5014 | rm -f conftest.err conftest.$ac_ext |
5950 | rm -f conftest.i conftest.err conftest.$ac_ext |
5015 | if $ac_preproc_ok; then |
5951 | if $ac_preproc_ok |
|
|
5952 | then : |
5016 | break |
5953 | break |
5017 | fi |
5954 | fi |
5018 | |
5955 | |
5019 | done |
5956 | done |
5020 | ac_cv_prog_CXXCPP=$CXXCPP |
5957 | ac_cv_prog_CXXCPP=$CXXCPP |
… | |
… | |
5022 | fi |
5959 | fi |
5023 | CXXCPP=$ac_cv_prog_CXXCPP |
5960 | CXXCPP=$ac_cv_prog_CXXCPP |
5024 | else |
5961 | else |
5025 | ac_cv_prog_CXXCPP=$CXXCPP |
5962 | ac_cv_prog_CXXCPP=$CXXCPP |
5026 | fi |
5963 | fi |
5027 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
5028 | echo "${ECHO_T}$CXXCPP" >&6; } |
5965 | printf "%s\n" "$CXXCPP" >&6; } |
5029 | ac_preproc_ok=false |
5966 | ac_preproc_ok=false |
5030 | for ac_cxx_preproc_warn_flag in '' yes |
5967 | for ac_cxx_preproc_warn_flag in '' yes |
5031 | do |
5968 | do |
5032 | # Use a header file that comes with gcc, so configuring glibc |
5969 | # Use a header file that comes with gcc, so configuring glibc |
5033 | # with a fresh cross-compiler works. |
5970 | # with a fresh cross-compiler works. |
5034 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5035 | # <limits.h> exists even on freestanding compilers. |
|
|
5036 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5971 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5037 | # not just through cpp. "Syntax error" is here to catch this case. |
5972 | # not just through cpp. "Syntax error" is here to catch this case. |
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
5973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
5974 | /* end confdefs.h. */ |
5044 | #ifdef __STDC__ |
|
|
5045 | # include <limits.h> |
5975 | #include <limits.h> |
5046 | #else |
|
|
5047 | # include <assert.h> |
|
|
5048 | #endif |
|
|
5049 | Syntax error |
5976 | Syntax error |
5050 | _ACEOF |
5977 | _ACEOF |
5051 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5978 | if ac_fn_cxx_try_cpp "$LINENO" |
5052 | case "(($ac_try" in |
5979 | then : |
5053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5054 | *) ac_try_echo=$ac_try;; |
|
|
5055 | esac |
|
|
5056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5057 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5058 | ac_status=$? |
|
|
5059 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5060 | rm -f conftest.er1 |
|
|
5061 | cat conftest.err >&5 |
|
|
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5063 | (exit $ac_status); } >/dev/null && { |
|
|
5064 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5065 | test ! -s conftest.err |
|
|
5066 | }; then |
|
|
5067 | : |
|
|
5068 | else |
|
|
5069 | echo "$as_me: failed program was:" >&5 |
|
|
5070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5071 | |
5980 | |
|
|
5981 | else $as_nop |
5072 | # Broken: fails on valid input. |
5982 | # Broken: fails on valid input. |
5073 | continue |
5983 | continue |
5074 | fi |
5984 | fi |
5075 | |
|
|
5076 | rm -f conftest.err conftest.$ac_ext |
5985 | rm -f conftest.err conftest.i conftest.$ac_ext |
5077 | |
5986 | |
5078 | # OK, works on sane cases. Now check whether nonexistent headers |
5987 | # OK, works on sane cases. Now check whether nonexistent headers |
5079 | # can be detected and how. |
5988 | # can be detected and how. |
5080 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5081 | /* confdefs.h. */ |
|
|
5082 | _ACEOF |
|
|
5083 | cat confdefs.h >>conftest.$ac_ext |
5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5084 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5085 | /* end confdefs.h. */ |
5990 | /* end confdefs.h. */ |
5086 | #include <ac_nonexistent.h> |
5991 | #include <ac_nonexistent.h> |
5087 | _ACEOF |
5992 | _ACEOF |
5088 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5993 | if ac_fn_cxx_try_cpp "$LINENO" |
5089 | case "(($ac_try" in |
5994 | then : |
5090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5091 | *) ac_try_echo=$ac_try;; |
|
|
5092 | esac |
|
|
5093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5095 | ac_status=$? |
|
|
5096 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5097 | rm -f conftest.er1 |
|
|
5098 | cat conftest.err >&5 |
|
|
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5100 | (exit $ac_status); } >/dev/null && { |
|
|
5101 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5102 | test ! -s conftest.err |
|
|
5103 | }; then |
|
|
5104 | # Broken: success on invalid input. |
5995 | # Broken: success on invalid input. |
5105 | continue |
5996 | continue |
5106 | else |
5997 | else $as_nop |
5107 | echo "$as_me: failed program was:" >&5 |
|
|
5108 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5109 | |
|
|
5110 | # Passes both tests. |
5998 | # Passes both tests. |
5111 | ac_preproc_ok=: |
5999 | ac_preproc_ok=: |
5112 | break |
6000 | break |
5113 | fi |
6001 | fi |
5114 | |
|
|
5115 | rm -f conftest.err conftest.$ac_ext |
6002 | rm -f conftest.err conftest.i conftest.$ac_ext |
5116 | |
6003 | |
5117 | done |
6004 | done |
5118 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5119 | rm -f conftest.err conftest.$ac_ext |
6006 | rm -f conftest.i conftest.err conftest.$ac_ext |
5120 | if $ac_preproc_ok; then |
6007 | if $ac_preproc_ok |
5121 | : |
6008 | then : |
5122 | else |
6009 | |
5123 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6010 | else $as_nop |
5124 | See \`config.log' for more details." >&5 |
6011 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
6012 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
5125 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6013 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
5126 | See \`config.log' for more details." >&2;} |
6014 | See \`config.log' for more details" "$LINENO" 5; } |
5127 | { (exit 1); exit 1; }; } |
|
|
5128 | fi |
6015 | fi |
5129 | |
6016 | |
5130 | ac_ext=cpp |
6017 | ac_ext=cpp |
5131 | ac_cpp='$CXXCPP $CPPFLAGS' |
6018 | ac_cpp='$CXXCPP $CPPFLAGS' |
5132 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6019 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5133 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6020 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5134 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6021 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5135 | |
6022 | |
5136 | |
6023 | |
5137 | { echo "$as_me:$LINENO: checking for X" >&5 |
6024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
5138 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6025 | printf %s "checking for X... " >&6; } |
5139 | |
6026 | |
5140 | |
6027 | |
5141 | # Check whether --with-x was given. |
6028 | # Check whether --with-x was given. |
5142 | if test "${with_x+set}" = set; then |
6029 | if test ${with_x+y} |
|
|
6030 | then : |
5143 | withval=$with_x; |
6031 | withval=$with_x; |
5144 | fi |
6032 | fi |
5145 | |
6033 | |
5146 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6034 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
5147 | if test "x$with_x" = xno; then |
6035 | if test "x$with_x" = xno; then |
5148 | # The user explicitly disabled X. |
6036 | # The user explicitly disabled X. |
5149 | have_x=disabled |
6037 | have_x=disabled |
5150 | else |
6038 | else |
5151 | case $x_includes,$x_libraries in #( |
6039 | case $x_includes,$x_libraries in #( |
5152 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
6040 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
5153 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
|
|
5154 | { (exit 1); exit 1; }; };; #( |
|
|
5155 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
6041 | *,NONE | NONE,*) if test ${ac_cv_have_x+y} |
5156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6042 | then : |
5157 | else |
6043 | printf %s "(cached) " >&6 |
|
|
6044 | else $as_nop |
5158 | # One or both of the vars are not set, and there is no cached value. |
6045 | # One or both of the vars are not set, and there is no cached value. |
5159 | ac_x_includes=no ac_x_libraries=no |
6046 | ac_x_includes=no |
|
|
6047 | ac_x_libraries=no |
|
|
6048 | # Do we need to do anything special at all? |
|
|
6049 | ac_save_LIBS=$LIBS |
|
|
6050 | LIBS="-lX11 $LIBS" |
|
|
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6052 | /* end confdefs.h. */ |
|
|
6053 | #include <X11/Xlib.h> |
|
|
6054 | int |
|
|
6055 | main (void) |
|
|
6056 | { |
|
|
6057 | XrmInitialize () |
|
|
6058 | ; |
|
|
6059 | return 0; |
|
|
6060 | } |
|
|
6061 | _ACEOF |
|
|
6062 | if ac_fn_cxx_try_link "$LINENO" |
|
|
6063 | then : |
|
|
6064 | # We can compile and link X programs with no special options. |
|
|
6065 | ac_x_includes= |
|
|
6066 | ac_x_libraries= |
|
|
6067 | fi |
|
|
6068 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
6069 | conftest$ac_exeext conftest.$ac_ext |
|
|
6070 | LIBS="$ac_save_LIBS" |
|
|
6071 | # If that didn't work, only try xmkmf and file system searches |
|
|
6072 | # for native compilation. |
|
|
6073 | if test x"$ac_x_includes" = xno && test "$cross_compiling" = no |
|
|
6074 | then : |
5160 | rm -f -r conftest.dir |
6075 | rm -f -r conftest.dir |
5161 | if mkdir conftest.dir; then |
6076 | if mkdir conftest.dir; then |
5162 | cd conftest.dir |
6077 | cd conftest.dir |
5163 | cat >Imakefile <<'_ACEOF' |
6078 | cat >Imakefile <<'_ACEOF' |
5164 | incroot: |
6079 | incroot: |
5165 | @echo incroot='${INCROOT}' |
6080 | @echo incroot='${INCROOT}' |
… | |
… | |
5167 | @echo usrlibdir='${USRLIBDIR}' |
6082 | @echo usrlibdir='${USRLIBDIR}' |
5168 | libdir: |
6083 | libdir: |
5169 | @echo libdir='${LIBDIR}' |
6084 | @echo libdir='${LIBDIR}' |
5170 | _ACEOF |
6085 | _ACEOF |
5171 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
6086 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
5172 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6087 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
5173 | for ac_var in incroot usrlibdir libdir; do |
6088 | for ac_var in incroot usrlibdir libdir; do |
5174 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
6089 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
5175 | done |
6090 | done |
5176 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
6091 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
5177 | for ac_extension in a so sl; do |
6092 | for ac_extension in a so sl dylib la dll; do |
5178 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
6093 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
5179 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
6094 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
5180 | ac_im_usrlibdir=$ac_im_libdir; break |
6095 | ac_im_usrlibdir=$ac_im_libdir; break |
5181 | fi |
6096 | fi |
5182 | done |
6097 | done |
… | |
… | |
5186 | case $ac_im_incroot in |
6101 | case $ac_im_incroot in |
5187 | /usr/include) ac_x_includes= ;; |
6102 | /usr/include) ac_x_includes= ;; |
5188 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
6103 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
5189 | esac |
6104 | esac |
5190 | case $ac_im_usrlibdir in |
6105 | case $ac_im_usrlibdir in |
5191 | /usr/lib | /lib) ;; |
6106 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
5192 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
6107 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
5193 | esac |
6108 | esac |
5194 | fi |
6109 | fi |
5195 | cd .. |
6110 | cd .. |
5196 | rm -f -r conftest.dir |
6111 | rm -f -r conftest.dir |
5197 | fi |
6112 | fi |
5198 | |
6113 | |
5199 | # Standard set of common directories for X headers. |
6114 | # Standard set of common directories for X headers. |
5200 | # Check X11 before X11Rn because it is often a symlink to the current release. |
6115 | # Check X11 before X11Rn because it is often a symlink to the current release. |
5201 | ac_x_header_dirs=' |
6116 | ac_x_header_dirs=' |
5202 | /usr/X11/include |
6117 | /usr/X11/include |
|
|
6118 | /usr/X11R7/include |
5203 | /usr/X11R6/include |
6119 | /usr/X11R6/include |
5204 | /usr/X11R5/include |
6120 | /usr/X11R5/include |
5205 | /usr/X11R4/include |
6121 | /usr/X11R4/include |
5206 | |
6122 | |
5207 | /usr/include/X11 |
6123 | /usr/include/X11 |
|
|
6124 | /usr/include/X11R7 |
5208 | /usr/include/X11R6 |
6125 | /usr/include/X11R6 |
5209 | /usr/include/X11R5 |
6126 | /usr/include/X11R5 |
5210 | /usr/include/X11R4 |
6127 | /usr/include/X11R4 |
5211 | |
6128 | |
5212 | /usr/local/X11/include |
6129 | /usr/local/X11/include |
|
|
6130 | /usr/local/X11R7/include |
5213 | /usr/local/X11R6/include |
6131 | /usr/local/X11R6/include |
5214 | /usr/local/X11R5/include |
6132 | /usr/local/X11R5/include |
5215 | /usr/local/X11R4/include |
6133 | /usr/local/X11R4/include |
5216 | |
6134 | |
5217 | /usr/local/include/X11 |
6135 | /usr/local/include/X11 |
|
|
6136 | /usr/local/include/X11R7 |
5218 | /usr/local/include/X11R6 |
6137 | /usr/local/include/X11R6 |
5219 | /usr/local/include/X11R5 |
6138 | /usr/local/include/X11R5 |
5220 | /usr/local/include/X11R4 |
6139 | /usr/local/include/X11R4 |
|
|
6140 | |
|
|
6141 | /opt/X11/include |
5221 | |
6142 | |
5222 | /usr/X386/include |
6143 | /usr/X386/include |
5223 | /usr/x386/include |
6144 | /usr/x386/include |
5224 | /usr/XFree86/include/X11 |
6145 | /usr/XFree86/include/X11 |
5225 | |
6146 | |
… | |
… | |
5234 | /usr/openwin/share/include' |
6155 | /usr/openwin/share/include' |
5235 | |
6156 | |
5236 | if test "$ac_x_includes" = no; then |
6157 | if test "$ac_x_includes" = no; then |
5237 | # Guess where to find include files, by looking for Xlib.h. |
6158 | # Guess where to find include files, by looking for Xlib.h. |
5238 | # First, try using that file with no special directory specified. |
6159 | # First, try using that file with no special directory specified. |
5239 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5240 | /* confdefs.h. */ |
|
|
5241 | _ACEOF |
|
|
5242 | cat confdefs.h >>conftest.$ac_ext |
6160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5243 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5244 | /* end confdefs.h. */ |
6161 | /* end confdefs.h. */ |
5245 | #include <X11/Xlib.h> |
6162 | #include <X11/Xlib.h> |
5246 | _ACEOF |
6163 | _ACEOF |
5247 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6164 | if ac_fn_cxx_try_cpp "$LINENO" |
5248 | case "(($ac_try" in |
6165 | then : |
5249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5250 | *) ac_try_echo=$ac_try;; |
|
|
5251 | esac |
|
|
5252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5253 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5254 | ac_status=$? |
|
|
5255 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5256 | rm -f conftest.er1 |
|
|
5257 | cat conftest.err >&5 |
|
|
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5259 | (exit $ac_status); } >/dev/null && { |
|
|
5260 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5261 | test ! -s conftest.err |
|
|
5262 | }; then |
|
|
5263 | # We can compile using X headers with no special include directory. |
6166 | # We can compile using X headers with no special include directory. |
5264 | ac_x_includes= |
6167 | ac_x_includes= |
5265 | else |
6168 | else $as_nop |
5266 | echo "$as_me: failed program was:" >&5 |
|
|
5267 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5268 | |
|
|
5269 | for ac_dir in $ac_x_header_dirs; do |
6169 | for ac_dir in $ac_x_header_dirs; do |
5270 | if test -r "$ac_dir/X11/Xlib.h"; then |
6170 | if test -r "$ac_dir/X11/Xlib.h"; then |
5271 | ac_x_includes=$ac_dir |
6171 | ac_x_includes=$ac_dir |
5272 | break |
6172 | break |
5273 | fi |
6173 | fi |
5274 | done |
6174 | done |
5275 | fi |
6175 | fi |
5276 | |
|
|
5277 | rm -f conftest.err conftest.$ac_ext |
6176 | rm -f conftest.err conftest.i conftest.$ac_ext |
5278 | fi # $ac_x_includes = no |
6177 | fi # $ac_x_includes = no |
5279 | |
6178 | |
5280 | if test "$ac_x_libraries" = no; then |
6179 | if test "$ac_x_libraries" = no; then |
5281 | # Check for the libraries. |
6180 | # Check for the libraries. |
5282 | # See if we find them without any special options. |
6181 | # See if we find them without any special options. |
5283 | # Don't add to $LIBS permanently. |
6182 | # Don't add to $LIBS permanently. |
5284 | ac_save_LIBS=$LIBS |
6183 | ac_save_LIBS=$LIBS |
5285 | LIBS="-lX11 $LIBS" |
6184 | LIBS="-lX11 $LIBS" |
5286 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5287 | /* confdefs.h. */ |
|
|
5288 | _ACEOF |
|
|
5289 | cat confdefs.h >>conftest.$ac_ext |
6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5290 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5291 | /* end confdefs.h. */ |
6186 | /* end confdefs.h. */ |
5292 | #include <X11/Xlib.h> |
6187 | #include <X11/Xlib.h> |
5293 | int |
6188 | int |
5294 | main () |
6189 | main (void) |
5295 | { |
6190 | { |
5296 | XrmInitialize () |
6191 | XrmInitialize () |
5297 | ; |
6192 | ; |
5298 | return 0; |
6193 | return 0; |
5299 | } |
6194 | } |
5300 | _ACEOF |
6195 | _ACEOF |
5301 | rm -f conftest.$ac_objext conftest$ac_exeext |
6196 | if ac_fn_cxx_try_link "$LINENO" |
5302 | if { (ac_try="$ac_link" |
6197 | then : |
5303 | case "(($ac_try" in |
|
|
5304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5305 | *) ac_try_echo=$ac_try;; |
|
|
5306 | esac |
|
|
5307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5308 | (eval "$ac_link") 2>conftest.er1 |
|
|
5309 | ac_status=$? |
|
|
5310 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5311 | rm -f conftest.er1 |
|
|
5312 | cat conftest.err >&5 |
|
|
5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5314 | (exit $ac_status); } && { |
|
|
5315 | test -z "$ac_cxx_werror_flag" || |
|
|
5316 | test ! -s conftest.err |
|
|
5317 | } && test -s conftest$ac_exeext && |
|
|
5318 | $as_test_x conftest$ac_exeext; then |
|
|
5319 | LIBS=$ac_save_LIBS |
6198 | LIBS=$ac_save_LIBS |
5320 | # We can link X programs with no special library path. |
6199 | # We can link X programs with no special library path. |
5321 | ac_x_libraries= |
6200 | ac_x_libraries= |
5322 | else |
6201 | else $as_nop |
5323 | echo "$as_me: failed program was:" >&5 |
|
|
5324 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5325 | |
|
|
5326 | LIBS=$ac_save_LIBS |
6202 | LIBS=$ac_save_LIBS |
5327 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
6203 | for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5328 | do |
6204 | do |
5329 | # Don't even attempt the hair of trying to link an X program! |
6205 | # Don't even attempt the hair of trying to link an X program! |
5330 | for ac_extension in a so sl; do |
6206 | for ac_extension in a so sl dylib la dll; do |
5331 | if test -r "$ac_dir/libX11.$ac_extension"; then |
6207 | if test -r "$ac_dir/libX11.$ac_extension"; then |
5332 | ac_x_libraries=$ac_dir |
6208 | ac_x_libraries=$ac_dir |
5333 | break 2 |
6209 | break 2 |
5334 | fi |
6210 | fi |
5335 | done |
6211 | done |
5336 | done |
6212 | done |
5337 | fi |
6213 | fi |
5338 | |
|
|
5339 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6214 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5340 | conftest$ac_exeext conftest.$ac_ext |
6215 | conftest$ac_exeext conftest.$ac_ext |
5341 | fi # $ac_x_libraries = no |
6216 | fi # $ac_x_libraries = no |
5342 | |
6217 | |
|
|
6218 | fi |
|
|
6219 | # Record the results. |
5343 | case $ac_x_includes,$ac_x_libraries in #( |
6220 | case $ac_x_includes,$ac_x_libraries in #( |
5344 | no,* | *,no | *\'*) |
6221 | no,* | *,no | *\'*) : |
5345 | # Didn't find X, or a directory has "'" in its name. |
6222 | # Didn't find X, or a directory has "'" in its name. |
5346 | ac_cv_have_x="have_x=no";; #( |
6223 | ac_cv_have_x="have_x=no" ;; #( |
5347 | *) |
6224 | *) : |
5348 | # Record where we found X for the cache. |
6225 | # Record where we found X for the cache. |
5349 | ac_cv_have_x="have_x=yes\ |
6226 | ac_cv_have_x="have_x=yes\ |
5350 | ac_x_includes='$ac_x_includes'\ |
6227 | ac_x_includes='$ac_x_includes'\ |
5351 | ac_x_libraries='$ac_x_libraries'" |
6228 | ac_x_libraries='$ac_x_libraries'" ;; |
5352 | esac |
6229 | esac |
5353 | fi |
6230 | fi |
5354 | ;; #( |
6231 | ;; #( |
5355 | *) have_x=yes;; |
6232 | *) have_x=yes;; |
5356 | esac |
6233 | esac |
5357 | eval "$ac_cv_have_x" |
6234 | eval "$ac_cv_have_x" |
5358 | fi # $with_x != no |
6235 | fi # $with_x != no |
5359 | |
6236 | |
5360 | if test "$have_x" != yes; then |
6237 | if test "$have_x" != yes; then |
5361 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
6238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
5362 | echo "${ECHO_T}$have_x" >&6; } |
6239 | printf "%s\n" "$have_x" >&6; } |
5363 | no_x=yes |
6240 | no_x=yes |
5364 | else |
6241 | else |
5365 | # If each of the values was on the command line, it overrides each guess. |
6242 | # If each of the values was on the command line, it overrides each guess. |
5366 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6243 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
5367 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6244 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
5368 | # Update the cache value to reflect the command line values. |
6245 | # Update the cache value to reflect the command line values. |
5369 | ac_cv_have_x="have_x=yes\ |
6246 | ac_cv_have_x="have_x=yes\ |
5370 | ac_x_includes='$x_includes'\ |
6247 | ac_x_includes='$x_includes'\ |
5371 | ac_x_libraries='$x_libraries'" |
6248 | ac_x_libraries='$x_libraries'" |
5372 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
6249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
5373 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
6250 | printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } |
5374 | fi |
6251 | fi |
5375 | |
6252 | |
5376 | if test "$no_x" = yes; then |
6253 | if test "$no_x" = yes; then |
5377 | # Not all programs may use this symbol, but it does not hurt to define it. |
6254 | # Not all programs may use this symbol, but it does not hurt to define it. |
5378 | |
6255 | |
5379 | cat >>confdefs.h <<\_ACEOF |
6256 | printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h |
5380 | #define X_DISPLAY_MISSING 1 |
|
|
5381 | _ACEOF |
|
|
5382 | |
6257 | |
5383 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6258 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
5384 | else |
6259 | else |
5385 | if test -n "$x_includes"; then |
6260 | if test -n "$x_includes"; then |
5386 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
6261 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
… | |
… | |
5389 | # It would also be nice to do this for all -L options, not just this one. |
6264 | # It would also be nice to do this for all -L options, not just this one. |
5390 | if test -n "$x_libraries"; then |
6265 | if test -n "$x_libraries"; then |
5391 | X_LIBS="$X_LIBS -L$x_libraries" |
6266 | X_LIBS="$X_LIBS -L$x_libraries" |
5392 | # For Solaris; some versions of Sun CC require a space after -R and |
6267 | # For Solaris; some versions of Sun CC require a space after -R and |
5393 | # others require no space. Words are not sufficient . . . . |
6268 | # others require no space. Words are not sufficient . . . . |
5394 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
6269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
5395 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
6270 | printf %s "checking whether -R must be followed by a space... " >&6; } |
5396 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
6271 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
5397 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
6272 | ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag |
5398 | ac_cxx_werror_flag=yes |
6273 | ac_cxx_werror_flag=yes |
5399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5400 | /* confdefs.h. */ |
|
|
5401 | _ACEOF |
|
|
5402 | cat confdefs.h >>conftest.$ac_ext |
6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5404 | /* end confdefs.h. */ |
6275 | /* end confdefs.h. */ |
5405 | |
6276 | |
5406 | int |
6277 | int |
5407 | main () |
6278 | main (void) |
5408 | { |
6279 | { |
5409 | |
6280 | |
5410 | ; |
6281 | ; |
5411 | return 0; |
6282 | return 0; |
5412 | } |
6283 | } |
5413 | _ACEOF |
6284 | _ACEOF |
5414 | rm -f conftest.$ac_objext conftest$ac_exeext |
6285 | if ac_fn_cxx_try_link "$LINENO" |
5415 | if { (ac_try="$ac_link" |
6286 | then : |
5416 | case "(($ac_try" in |
6287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6288 | printf "%s\n" "no" >&6; } |
5418 | *) ac_try_echo=$ac_try;; |
|
|
5419 | esac |
|
|
5420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5421 | (eval "$ac_link") 2>conftest.er1 |
|
|
5422 | ac_status=$? |
|
|
5423 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5424 | rm -f conftest.er1 |
|
|
5425 | cat conftest.err >&5 |
|
|
5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5427 | (exit $ac_status); } && { |
|
|
5428 | test -z "$ac_cxx_werror_flag" || |
|
|
5429 | test ! -s conftest.err |
|
|
5430 | } && test -s conftest$ac_exeext && |
|
|
5431 | $as_test_x conftest$ac_exeext; then |
|
|
5432 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5433 | echo "${ECHO_T}no" >&6; } |
|
|
5434 | X_LIBS="$X_LIBS -R$x_libraries" |
6289 | X_LIBS="$X_LIBS -R$x_libraries" |
5435 | else |
6290 | else $as_nop |
5436 | echo "$as_me: failed program was:" >&5 |
|
|
5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5438 | |
|
|
5439 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
6291 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
5440 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5441 | /* confdefs.h. */ |
|
|
5442 | _ACEOF |
|
|
5443 | cat confdefs.h >>conftest.$ac_ext |
6292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5444 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5445 | /* end confdefs.h. */ |
6293 | /* end confdefs.h. */ |
5446 | |
6294 | |
5447 | int |
6295 | int |
5448 | main () |
6296 | main (void) |
5449 | { |
6297 | { |
5450 | |
6298 | |
5451 | ; |
6299 | ; |
5452 | return 0; |
6300 | return 0; |
5453 | } |
6301 | } |
5454 | _ACEOF |
6302 | _ACEOF |
5455 | rm -f conftest.$ac_objext conftest$ac_exeext |
6303 | if ac_fn_cxx_try_link "$LINENO" |
5456 | if { (ac_try="$ac_link" |
6304 | then : |
5457 | case "(($ac_try" in |
6305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6306 | printf "%s\n" "yes" >&6; } |
5459 | *) ac_try_echo=$ac_try;; |
|
|
5460 | esac |
|
|
5461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5462 | (eval "$ac_link") 2>conftest.er1 |
|
|
5463 | ac_status=$? |
|
|
5464 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5465 | rm -f conftest.er1 |
|
|
5466 | cat conftest.err >&5 |
|
|
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5468 | (exit $ac_status); } && { |
|
|
5469 | test -z "$ac_cxx_werror_flag" || |
|
|
5470 | test ! -s conftest.err |
|
|
5471 | } && test -s conftest$ac_exeext && |
|
|
5472 | $as_test_x conftest$ac_exeext; then |
|
|
5473 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5474 | echo "${ECHO_T}yes" >&6; } |
|
|
5475 | X_LIBS="$X_LIBS -R $x_libraries" |
6307 | X_LIBS="$X_LIBS -R $x_libraries" |
5476 | else |
6308 | else $as_nop |
5477 | echo "$as_me: failed program was:" >&5 |
6309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
5478 | sed 's/^/| /' conftest.$ac_ext >&5 |
6310 | printf "%s\n" "neither works" >&6; } |
5479 | |
|
|
5480 | { echo "$as_me:$LINENO: result: neither works" >&5 |
|
|
5481 | echo "${ECHO_T}neither works" >&6; } |
|
|
5482 | fi |
6311 | fi |
5483 | |
|
|
5484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6312 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5485 | conftest$ac_exeext conftest.$ac_ext |
6313 | conftest$ac_exeext conftest.$ac_ext |
5486 | fi |
6314 | fi |
5487 | |
|
|
5488 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6315 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5489 | conftest$ac_exeext conftest.$ac_ext |
6316 | conftest$ac_exeext conftest.$ac_ext |
5490 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
6317 | ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag |
5491 | LIBS=$ac_xsave_LIBS |
6318 | LIBS=$ac_xsave_LIBS |
5492 | fi |
6319 | fi |
5493 | |
6320 | |
5494 | # Check for system-dependent libraries X programs must link with. |
6321 | # Check for system-dependent libraries X programs must link with. |
… | |
… | |
5500 | else |
6327 | else |
5501 | # Martyn Johnson says this is needed for Ultrix, if the X |
6328 | # Martyn Johnson says this is needed for Ultrix, if the X |
5502 | # libraries were built with DECnet support. And Karl Berry says |
6329 | # libraries were built with DECnet support. And Karl Berry says |
5503 | # the Alpha needs dnet_stub (dnet does not exist). |
6330 | # the Alpha needs dnet_stub (dnet does not exist). |
5504 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
6331 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
5505 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5506 | /* confdefs.h. */ |
|
|
5507 | _ACEOF |
|
|
5508 | cat confdefs.h >>conftest.$ac_ext |
6332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5509 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5510 | /* end confdefs.h. */ |
6333 | /* end confdefs.h. */ |
5511 | |
6334 | |
5512 | /* Override any GCC internal prototype to avoid an error. |
6335 | namespace conftest { |
5513 | Use char because int might match the return type of a GCC |
6336 | extern "C" int XOpenDisplay (); |
5514 | builtin and then its argument prototype would still apply. */ |
6337 | } |
5515 | #ifdef __cplusplus |
|
|
5516 | extern "C" |
|
|
5517 | #endif |
|
|
5518 | char XOpenDisplay (); |
|
|
5519 | int |
6338 | int |
5520 | main () |
6339 | main (void) |
5521 | { |
6340 | { |
5522 | return XOpenDisplay (); |
6341 | return conftest::XOpenDisplay (); |
5523 | ; |
6342 | ; |
5524 | return 0; |
6343 | return 0; |
5525 | } |
6344 | } |
5526 | _ACEOF |
6345 | _ACEOF |
5527 | rm -f conftest.$ac_objext conftest$ac_exeext |
6346 | if ac_fn_cxx_try_link "$LINENO" |
5528 | if { (ac_try="$ac_link" |
6347 | then : |
5529 | case "(($ac_try" in |
|
|
5530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5531 | *) ac_try_echo=$ac_try;; |
|
|
5532 | esac |
|
|
5533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5534 | (eval "$ac_link") 2>conftest.er1 |
|
|
5535 | ac_status=$? |
|
|
5536 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5537 | rm -f conftest.er1 |
|
|
5538 | cat conftest.err >&5 |
|
|
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5540 | (exit $ac_status); } && { |
|
|
5541 | test -z "$ac_cxx_werror_flag" || |
|
|
5542 | test ! -s conftest.err |
|
|
5543 | } && test -s conftest$ac_exeext && |
|
|
5544 | $as_test_x conftest$ac_exeext; then |
|
|
5545 | : |
|
|
5546 | else |
|
|
5547 | echo "$as_me: failed program was:" >&5 |
|
|
5548 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5549 | |
6348 | |
|
|
6349 | else $as_nop |
5550 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
6350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
5551 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
6351 | printf %s "checking for dnet_ntoa in -ldnet... " >&6; } |
5552 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
6352 | if test ${ac_cv_lib_dnet_dnet_ntoa+y} |
5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6353 | then : |
5554 | else |
6354 | printf %s "(cached) " >&6 |
|
|
6355 | else $as_nop |
5555 | ac_check_lib_save_LIBS=$LIBS |
6356 | ac_check_lib_save_LIBS=$LIBS |
5556 | LIBS="-ldnet $LIBS" |
6357 | LIBS="-ldnet $LIBS" |
5557 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5558 | /* confdefs.h. */ |
|
|
5559 | _ACEOF |
|
|
5560 | cat confdefs.h >>conftest.$ac_ext |
6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5561 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5562 | /* end confdefs.h. */ |
6359 | /* end confdefs.h. */ |
5563 | |
6360 | |
5564 | /* Override any GCC internal prototype to avoid an error. |
6361 | namespace conftest { |
5565 | Use char because int might match the return type of a GCC |
6362 | extern "C" int dnet_ntoa (); |
5566 | builtin and then its argument prototype would still apply. */ |
6363 | } |
5567 | #ifdef __cplusplus |
|
|
5568 | extern "C" |
|
|
5569 | #endif |
|
|
5570 | char dnet_ntoa (); |
|
|
5571 | int |
6364 | int |
5572 | main () |
6365 | main (void) |
5573 | { |
6366 | { |
5574 | return dnet_ntoa (); |
6367 | return conftest::dnet_ntoa (); |
5575 | ; |
6368 | ; |
5576 | return 0; |
6369 | return 0; |
5577 | } |
6370 | } |
5578 | _ACEOF |
6371 | _ACEOF |
5579 | rm -f conftest.$ac_objext conftest$ac_exeext |
6372 | if ac_fn_cxx_try_link "$LINENO" |
5580 | if { (ac_try="$ac_link" |
6373 | then : |
5581 | case "(($ac_try" in |
|
|
5582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5583 | *) ac_try_echo=$ac_try;; |
|
|
5584 | esac |
|
|
5585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5586 | (eval "$ac_link") 2>conftest.er1 |
|
|
5587 | ac_status=$? |
|
|
5588 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5589 | rm -f conftest.er1 |
|
|
5590 | cat conftest.err >&5 |
|
|
5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5592 | (exit $ac_status); } && { |
|
|
5593 | test -z "$ac_cxx_werror_flag" || |
|
|
5594 | test ! -s conftest.err |
|
|
5595 | } && test -s conftest$ac_exeext && |
|
|
5596 | $as_test_x conftest$ac_exeext; then |
|
|
5597 | ac_cv_lib_dnet_dnet_ntoa=yes |
6374 | ac_cv_lib_dnet_dnet_ntoa=yes |
5598 | else |
6375 | else $as_nop |
5599 | echo "$as_me: failed program was:" >&5 |
|
|
5600 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5601 | |
|
|
5602 | ac_cv_lib_dnet_dnet_ntoa=no |
6376 | ac_cv_lib_dnet_dnet_ntoa=no |
5603 | fi |
6377 | fi |
5604 | |
|
|
5605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6378 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5606 | conftest$ac_exeext conftest.$ac_ext |
6379 | conftest$ac_exeext conftest.$ac_ext |
5607 | LIBS=$ac_check_lib_save_LIBS |
6380 | LIBS=$ac_check_lib_save_LIBS |
5608 | fi |
6381 | fi |
5609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
5610 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
6383 | printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
5611 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
6384 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes |
|
|
6385 | then : |
5612 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
5613 | fi |
6387 | fi |
5614 | |
6388 | |
5615 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6389 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
5616 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
6390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
5617 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
6391 | printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
5618 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
6392 | if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} |
5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6393 | then : |
5620 | else |
6394 | printf %s "(cached) " >&6 |
|
|
6395 | else $as_nop |
5621 | ac_check_lib_save_LIBS=$LIBS |
6396 | ac_check_lib_save_LIBS=$LIBS |
5622 | LIBS="-ldnet_stub $LIBS" |
6397 | LIBS="-ldnet_stub $LIBS" |
5623 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5624 | /* confdefs.h. */ |
|
|
5625 | _ACEOF |
|
|
5626 | cat confdefs.h >>conftest.$ac_ext |
6398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5627 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5628 | /* end confdefs.h. */ |
6399 | /* end confdefs.h. */ |
5629 | |
6400 | |
5630 | /* Override any GCC internal prototype to avoid an error. |
6401 | namespace conftest { |
5631 | Use char because int might match the return type of a GCC |
6402 | extern "C" int dnet_ntoa (); |
5632 | builtin and then its argument prototype would still apply. */ |
6403 | } |
5633 | #ifdef __cplusplus |
|
|
5634 | extern "C" |
|
|
5635 | #endif |
|
|
5636 | char dnet_ntoa (); |
|
|
5637 | int |
6404 | int |
5638 | main () |
6405 | main (void) |
5639 | { |
6406 | { |
5640 | return dnet_ntoa (); |
6407 | return conftest::dnet_ntoa (); |
5641 | ; |
6408 | ; |
5642 | return 0; |
6409 | return 0; |
5643 | } |
6410 | } |
5644 | _ACEOF |
6411 | _ACEOF |
5645 | rm -f conftest.$ac_objext conftest$ac_exeext |
6412 | if ac_fn_cxx_try_link "$LINENO" |
5646 | if { (ac_try="$ac_link" |
6413 | then : |
5647 | case "(($ac_try" in |
|
|
5648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5649 | *) ac_try_echo=$ac_try;; |
|
|
5650 | esac |
|
|
5651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5652 | (eval "$ac_link") 2>conftest.er1 |
|
|
5653 | ac_status=$? |
|
|
5654 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5655 | rm -f conftest.er1 |
|
|
5656 | cat conftest.err >&5 |
|
|
5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5658 | (exit $ac_status); } && { |
|
|
5659 | test -z "$ac_cxx_werror_flag" || |
|
|
5660 | test ! -s conftest.err |
|
|
5661 | } && test -s conftest$ac_exeext && |
|
|
5662 | $as_test_x conftest$ac_exeext; then |
|
|
5663 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
6414 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
5664 | else |
6415 | else $as_nop |
5665 | echo "$as_me: failed program was:" >&5 |
|
|
5666 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5667 | |
|
|
5668 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
6416 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
5669 | fi |
6417 | fi |
5670 | |
|
|
5671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6418 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5672 | conftest$ac_exeext conftest.$ac_ext |
6419 | conftest$ac_exeext conftest.$ac_ext |
5673 | LIBS=$ac_check_lib_save_LIBS |
6420 | LIBS=$ac_check_lib_save_LIBS |
5674 | fi |
6421 | fi |
5675 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
6422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
5676 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
6423 | printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
5677 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
6424 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes |
|
|
6425 | then : |
5678 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6426 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
5679 | fi |
6427 | fi |
5680 | |
6428 | |
5681 | fi |
6429 | fi |
5682 | fi |
6430 | fi |
5683 | |
|
|
5684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6431 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5685 | conftest$ac_exeext conftest.$ac_ext |
6432 | conftest$ac_exeext conftest.$ac_ext |
5686 | LIBS="$ac_xsave_LIBS" |
6433 | LIBS="$ac_xsave_LIBS" |
5687 | |
6434 | |
5688 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
6435 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
5689 | # to get the SysV transport functions. |
6436 | # to get the SysV transport functions. |
5690 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
6437 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
5691 | # needs -lnsl. |
6438 | # needs -lnsl. |
5692 | # The nsl library prevents programs from opening the X display |
6439 | # The nsl library prevents programs from opening the X display |
5693 | # on Irix 5.2, according to T.E. Dickey. |
6440 | # on Irix 5.2, according to T.E. Dickey. |
5694 | # The functions gethostbyname, getservbyname, and inet_addr are |
6441 | # The functions gethostbyname, getservbyname, and inet_addr are |
5695 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
6442 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
5696 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
6443 | ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
5697 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
6444 | if test "x$ac_cv_func_gethostbyname" = xyes |
|
|
6445 | then : |
|
|
6446 | |
|
|
6447 | fi |
|
|
6448 | |
5698 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
6449 | if test $ac_cv_func_gethostbyname = no; then |
5699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
5700 | else |
6451 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
5701 | cat >conftest.$ac_ext <<_ACEOF |
6452 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
5702 | /* confdefs.h. */ |
6453 | then : |
5703 | _ACEOF |
6454 | printf %s "(cached) " >&6 |
|
|
6455 | else $as_nop |
|
|
6456 | ac_check_lib_save_LIBS=$LIBS |
|
|
6457 | LIBS="-lnsl $LIBS" |
5704 | cat confdefs.h >>conftest.$ac_ext |
6458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5705 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5706 | /* end confdefs.h. */ |
6459 | /* end confdefs.h. */ |
5707 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
5708 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5709 | #define gethostbyname innocuous_gethostbyname |
|
|
5710 | |
6460 | |
5711 | /* System header to define __stub macros and hopefully few prototypes, |
6461 | namespace conftest { |
5712 | which can conflict with char gethostbyname (); below. |
6462 | extern "C" int gethostbyname (); |
5713 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6463 | } |
5714 | <limits.h> exists even on freestanding compilers. */ |
|
|
5715 | |
|
|
5716 | #ifdef __STDC__ |
|
|
5717 | # include <limits.h> |
|
|
5718 | #else |
|
|
5719 | # include <assert.h> |
|
|
5720 | #endif |
|
|
5721 | |
|
|
5722 | #undef gethostbyname |
|
|
5723 | |
|
|
5724 | /* Override any GCC internal prototype to avoid an error. |
|
|
5725 | Use char because int might match the return type of a GCC |
|
|
5726 | builtin and then its argument prototype would still apply. */ |
|
|
5727 | #ifdef __cplusplus |
|
|
5728 | extern "C" |
|
|
5729 | #endif |
|
|
5730 | char gethostbyname (); |
|
|
5731 | /* The GNU C library defines this for functions which it implements |
|
|
5732 | to always fail with ENOSYS. Some functions are actually named |
|
|
5733 | something starting with __ and the normal name is an alias. */ |
|
|
5734 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
|
|
5735 | choke me |
|
|
5736 | #endif |
|
|
5737 | |
|
|
5738 | int |
6464 | int |
5739 | main () |
6465 | main (void) |
5740 | { |
6466 | { |
5741 | return gethostbyname (); |
6467 | return conftest::gethostbyname (); |
5742 | ; |
6468 | ; |
5743 | return 0; |
6469 | return 0; |
5744 | } |
6470 | } |
5745 | _ACEOF |
6471 | _ACEOF |
5746 | rm -f conftest.$ac_objext conftest$ac_exeext |
6472 | if ac_fn_cxx_try_link "$LINENO" |
5747 | if { (ac_try="$ac_link" |
6473 | then : |
5748 | case "(($ac_try" in |
|
|
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5750 | *) ac_try_echo=$ac_try;; |
|
|
5751 | esac |
|
|
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5753 | (eval "$ac_link") 2>conftest.er1 |
|
|
5754 | ac_status=$? |
|
|
5755 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5756 | rm -f conftest.er1 |
|
|
5757 | cat conftest.err >&5 |
|
|
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5759 | (exit $ac_status); } && { |
|
|
5760 | test -z "$ac_cxx_werror_flag" || |
|
|
5761 | test ! -s conftest.err |
|
|
5762 | } && test -s conftest$ac_exeext && |
|
|
5763 | $as_test_x conftest$ac_exeext; then |
|
|
5764 | ac_cv_func_gethostbyname=yes |
6474 | ac_cv_lib_nsl_gethostbyname=yes |
5765 | else |
6475 | else $as_nop |
5766 | echo "$as_me: failed program was:" >&5 |
|
|
5767 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5768 | |
|
|
5769 | ac_cv_func_gethostbyname=no |
6476 | ac_cv_lib_nsl_gethostbyname=no |
5770 | fi |
6477 | fi |
5771 | |
|
|
5772 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6478 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5773 | conftest$ac_exeext conftest.$ac_ext |
6479 | conftest$ac_exeext conftest.$ac_ext |
|
|
6480 | LIBS=$ac_check_lib_save_LIBS |
5774 | fi |
6481 | fi |
5775 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
6482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
5776 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
6483 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
6484 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
|
|
6485 | then : |
|
|
6486 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
6487 | fi |
5777 | |
6488 | |
5778 | if test $ac_cv_func_gethostbyname = no; then |
6489 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
5779 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
6490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
5780 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
6491 | printf %s "checking for gethostbyname in -lbsd... " >&6; } |
5781 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
6492 | if test ${ac_cv_lib_bsd_gethostbyname+y} |
5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6493 | then : |
5783 | else |
6494 | printf %s "(cached) " >&6 |
|
|
6495 | else $as_nop |
5784 | ac_check_lib_save_LIBS=$LIBS |
6496 | ac_check_lib_save_LIBS=$LIBS |
5785 | LIBS="-lnsl $LIBS" |
6497 | LIBS="-lbsd $LIBS" |
5786 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5787 | /* confdefs.h. */ |
|
|
5788 | _ACEOF |
|
|
5789 | cat confdefs.h >>conftest.$ac_ext |
6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5790 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5791 | /* end confdefs.h. */ |
6499 | /* end confdefs.h. */ |
5792 | |
6500 | |
5793 | /* Override any GCC internal prototype to avoid an error. |
6501 | namespace conftest { |
5794 | Use char because int might match the return type of a GCC |
6502 | extern "C" int gethostbyname (); |
5795 | builtin and then its argument prototype would still apply. */ |
6503 | } |
5796 | #ifdef __cplusplus |
|
|
5797 | extern "C" |
|
|
5798 | #endif |
|
|
5799 | char gethostbyname (); |
|
|
5800 | int |
6504 | int |
5801 | main () |
6505 | main (void) |
5802 | { |
6506 | { |
5803 | return gethostbyname (); |
6507 | return conftest::gethostbyname (); |
5804 | ; |
6508 | ; |
5805 | return 0; |
6509 | return 0; |
5806 | } |
6510 | } |
5807 | _ACEOF |
6511 | _ACEOF |
5808 | rm -f conftest.$ac_objext conftest$ac_exeext |
6512 | if ac_fn_cxx_try_link "$LINENO" |
5809 | if { (ac_try="$ac_link" |
6513 | then : |
5810 | case "(($ac_try" in |
|
|
5811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5812 | *) ac_try_echo=$ac_try;; |
|
|
5813 | esac |
|
|
5814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5815 | (eval "$ac_link") 2>conftest.er1 |
|
|
5816 | ac_status=$? |
|
|
5817 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5818 | rm -f conftest.er1 |
|
|
5819 | cat conftest.err >&5 |
|
|
5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5821 | (exit $ac_status); } && { |
|
|
5822 | test -z "$ac_cxx_werror_flag" || |
|
|
5823 | test ! -s conftest.err |
|
|
5824 | } && test -s conftest$ac_exeext && |
|
|
5825 | $as_test_x conftest$ac_exeext; then |
|
|
5826 | ac_cv_lib_nsl_gethostbyname=yes |
6514 | ac_cv_lib_bsd_gethostbyname=yes |
5827 | else |
6515 | else $as_nop |
5828 | echo "$as_me: failed program was:" >&5 |
|
|
5829 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5830 | |
|
|
5831 | ac_cv_lib_nsl_gethostbyname=no |
6516 | ac_cv_lib_bsd_gethostbyname=no |
5832 | fi |
6517 | fi |
5833 | |
|
|
5834 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6518 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5835 | conftest$ac_exeext conftest.$ac_ext |
6519 | conftest$ac_exeext conftest.$ac_ext |
5836 | LIBS=$ac_check_lib_save_LIBS |
6520 | LIBS=$ac_check_lib_save_LIBS |
5837 | fi |
6521 | fi |
5838 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
|
|
5839 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
|
|
5840 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
|
|
5841 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
|
|
5842 | fi |
|
|
5843 | |
|
|
5844 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
|
|
5845 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
|
|
5846 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
|
|
5847 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
|
|
5848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5849 | else |
|
|
5850 | ac_check_lib_save_LIBS=$LIBS |
|
|
5851 | LIBS="-lbsd $LIBS" |
|
|
5852 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5853 | /* confdefs.h. */ |
|
|
5854 | _ACEOF |
|
|
5855 | cat confdefs.h >>conftest.$ac_ext |
|
|
5856 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5857 | /* end confdefs.h. */ |
|
|
5858 | |
|
|
5859 | /* Override any GCC internal prototype to avoid an error. |
|
|
5860 | Use char because int might match the return type of a GCC |
|
|
5861 | builtin and then its argument prototype would still apply. */ |
|
|
5862 | #ifdef __cplusplus |
|
|
5863 | extern "C" |
|
|
5864 | #endif |
|
|
5865 | char gethostbyname (); |
|
|
5866 | int |
|
|
5867 | main () |
|
|
5868 | { |
|
|
5869 | return gethostbyname (); |
|
|
5870 | ; |
|
|
5871 | return 0; |
|
|
5872 | } |
|
|
5873 | _ACEOF |
|
|
5874 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5875 | if { (ac_try="$ac_link" |
|
|
5876 | case "(($ac_try" in |
|
|
5877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5878 | *) ac_try_echo=$ac_try;; |
|
|
5879 | esac |
|
|
5880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5881 | (eval "$ac_link") 2>conftest.er1 |
|
|
5882 | ac_status=$? |
|
|
5883 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5884 | rm -f conftest.er1 |
|
|
5885 | cat conftest.err >&5 |
|
|
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5887 | (exit $ac_status); } && { |
|
|
5888 | test -z "$ac_cxx_werror_flag" || |
|
|
5889 | test ! -s conftest.err |
|
|
5890 | } && test -s conftest$ac_exeext && |
|
|
5891 | $as_test_x conftest$ac_exeext; then |
|
|
5892 | ac_cv_lib_bsd_gethostbyname=yes |
|
|
5893 | else |
|
|
5894 | echo "$as_me: failed program was:" >&5 |
|
|
5895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5896 | |
|
|
5897 | ac_cv_lib_bsd_gethostbyname=no |
|
|
5898 | fi |
|
|
5899 | |
|
|
5900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5901 | conftest$ac_exeext conftest.$ac_ext |
|
|
5902 | LIBS=$ac_check_lib_save_LIBS |
|
|
5903 | fi |
|
|
5904 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
6522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
5905 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
6523 | printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } |
5906 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
6524 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes |
|
|
6525 | then : |
5907 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
6526 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
5908 | fi |
6527 | fi |
5909 | |
6528 | |
5910 | fi |
6529 | fi |
5911 | fi |
6530 | fi |
… | |
… | |
5915 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
6534 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
5916 | # on later versions), says Simon Leinen: it contains gethostby* |
6535 | # on later versions), says Simon Leinen: it contains gethostby* |
5917 | # variants that don't use the name server (or something). -lsocket |
6536 | # variants that don't use the name server (or something). -lsocket |
5918 | # must be given before -lnsl if both are needed. We assume that |
6537 | # must be given before -lnsl if both are needed. We assume that |
5919 | # if connect needs -lnsl, so does gethostbyname. |
6538 | # if connect needs -lnsl, so does gethostbyname. |
5920 | { echo "$as_me:$LINENO: checking for connect" >&5 |
6539 | ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" |
5921 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
6540 | if test "x$ac_cv_func_connect" = xyes |
|
|
6541 | then : |
|
|
6542 | |
|
|
6543 | fi |
|
|
6544 | |
5922 | if test "${ac_cv_func_connect+set}" = set; then |
6545 | if test $ac_cv_func_connect = no; then |
5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
5924 | else |
6547 | printf %s "checking for connect in -lsocket... " >&6; } |
5925 | cat >conftest.$ac_ext <<_ACEOF |
6548 | if test ${ac_cv_lib_socket_connect+y} |
5926 | /* confdefs.h. */ |
6549 | then : |
5927 | _ACEOF |
6550 | printf %s "(cached) " >&6 |
|
|
6551 | else $as_nop |
|
|
6552 | ac_check_lib_save_LIBS=$LIBS |
|
|
6553 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
5928 | cat confdefs.h >>conftest.$ac_ext |
6554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5929 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5930 | /* end confdefs.h. */ |
6555 | /* end confdefs.h. */ |
5931 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
|
|
5932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5933 | #define connect innocuous_connect |
|
|
5934 | |
6556 | |
5935 | /* System header to define __stub macros and hopefully few prototypes, |
6557 | namespace conftest { |
5936 | which can conflict with char connect (); below. |
6558 | extern "C" int connect (); |
5937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6559 | } |
5938 | <limits.h> exists even on freestanding compilers. */ |
|
|
5939 | |
|
|
5940 | #ifdef __STDC__ |
|
|
5941 | # include <limits.h> |
|
|
5942 | #else |
|
|
5943 | # include <assert.h> |
|
|
5944 | #endif |
|
|
5945 | |
|
|
5946 | #undef connect |
|
|
5947 | |
|
|
5948 | /* Override any GCC internal prototype to avoid an error. |
|
|
5949 | Use char because int might match the return type of a GCC |
|
|
5950 | builtin and then its argument prototype would still apply. */ |
|
|
5951 | #ifdef __cplusplus |
|
|
5952 | extern "C" |
|
|
5953 | #endif |
|
|
5954 | char connect (); |
|
|
5955 | /* The GNU C library defines this for functions which it implements |
|
|
5956 | to always fail with ENOSYS. Some functions are actually named |
|
|
5957 | something starting with __ and the normal name is an alias. */ |
|
|
5958 | #if defined __stub_connect || defined __stub___connect |
|
|
5959 | choke me |
|
|
5960 | #endif |
|
|
5961 | |
|
|
5962 | int |
6560 | int |
5963 | main () |
6561 | main (void) |
5964 | { |
6562 | { |
5965 | return connect (); |
6563 | return conftest::connect (); |
5966 | ; |
6564 | ; |
5967 | return 0; |
6565 | return 0; |
5968 | } |
6566 | } |
5969 | _ACEOF |
6567 | _ACEOF |
5970 | rm -f conftest.$ac_objext conftest$ac_exeext |
6568 | if ac_fn_cxx_try_link "$LINENO" |
5971 | if { (ac_try="$ac_link" |
6569 | then : |
5972 | case "(($ac_try" in |
|
|
5973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5974 | *) ac_try_echo=$ac_try;; |
|
|
5975 | esac |
|
|
5976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5977 | (eval "$ac_link") 2>conftest.er1 |
|
|
5978 | ac_status=$? |
|
|
5979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5980 | rm -f conftest.er1 |
|
|
5981 | cat conftest.err >&5 |
|
|
5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5983 | (exit $ac_status); } && { |
|
|
5984 | test -z "$ac_cxx_werror_flag" || |
|
|
5985 | test ! -s conftest.err |
|
|
5986 | } && test -s conftest$ac_exeext && |
|
|
5987 | $as_test_x conftest$ac_exeext; then |
|
|
5988 | ac_cv_func_connect=yes |
6570 | ac_cv_lib_socket_connect=yes |
5989 | else |
6571 | else $as_nop |
5990 | echo "$as_me: failed program was:" >&5 |
6572 | ac_cv_lib_socket_connect=no |
5991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5992 | |
|
|
5993 | ac_cv_func_connect=no |
|
|
5994 | fi |
6573 | fi |
5995 | |
|
|
5996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6574 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5997 | conftest$ac_exeext conftest.$ac_ext |
6575 | conftest$ac_exeext conftest.$ac_ext |
|
|
6576 | LIBS=$ac_check_lib_save_LIBS |
5998 | fi |
6577 | fi |
5999 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
6578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
6000 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
6579 | printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } |
|
|
6580 | if test "x$ac_cv_lib_socket_connect" = xyes |
|
|
6581 | then : |
|
|
6582 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
|
|
6583 | fi |
6001 | |
6584 | |
|
|
6585 | fi |
|
|
6586 | |
|
|
6587 | # Guillermo Gomez says -lposix is necessary on A/UX. |
|
|
6588 | ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" |
|
|
6589 | if test "x$ac_cv_func_remove" = xyes |
|
|
6590 | then : |
|
|
6591 | |
|
|
6592 | fi |
|
|
6593 | |
6002 | if test $ac_cv_func_connect = no; then |
6594 | if test $ac_cv_func_remove = no; then |
6003 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
6595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
6004 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
6596 | printf %s "checking for remove in -lposix... " >&6; } |
6005 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
6597 | if test ${ac_cv_lib_posix_remove+y} |
6006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6598 | then : |
6007 | else |
6599 | printf %s "(cached) " >&6 |
|
|
6600 | else $as_nop |
6008 | ac_check_lib_save_LIBS=$LIBS |
6601 | ac_check_lib_save_LIBS=$LIBS |
6009 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
6602 | LIBS="-lposix $LIBS" |
6010 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6011 | /* confdefs.h. */ |
|
|
6012 | _ACEOF |
|
|
6013 | cat confdefs.h >>conftest.$ac_ext |
6603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6014 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6015 | /* end confdefs.h. */ |
6604 | /* end confdefs.h. */ |
6016 | |
6605 | |
6017 | /* Override any GCC internal prototype to avoid an error. |
6606 | namespace conftest { |
6018 | Use char because int might match the return type of a GCC |
6607 | extern "C" int remove (); |
6019 | builtin and then its argument prototype would still apply. */ |
6608 | } |
6020 | #ifdef __cplusplus |
|
|
6021 | extern "C" |
|
|
6022 | #endif |
|
|
6023 | char connect (); |
|
|
6024 | int |
6609 | int |
6025 | main () |
6610 | main (void) |
6026 | { |
6611 | { |
6027 | return connect (); |
6612 | return conftest::remove (); |
6028 | ; |
6613 | ; |
6029 | return 0; |
6614 | return 0; |
6030 | } |
6615 | } |
6031 | _ACEOF |
6616 | _ACEOF |
6032 | rm -f conftest.$ac_objext conftest$ac_exeext |
6617 | if ac_fn_cxx_try_link "$LINENO" |
6033 | if { (ac_try="$ac_link" |
6618 | then : |
6034 | case "(($ac_try" in |
6619 | ac_cv_lib_posix_remove=yes |
6035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6620 | else $as_nop |
6036 | *) ac_try_echo=$ac_try;; |
6621 | ac_cv_lib_posix_remove=no |
6037 | esac |
|
|
6038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6039 | (eval "$ac_link") 2>conftest.er1 |
|
|
6040 | ac_status=$? |
|
|
6041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6042 | rm -f conftest.er1 |
|
|
6043 | cat conftest.err >&5 |
|
|
6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6045 | (exit $ac_status); } && { |
|
|
6046 | test -z "$ac_cxx_werror_flag" || |
|
|
6047 | test ! -s conftest.err |
|
|
6048 | } && test -s conftest$ac_exeext && |
|
|
6049 | $as_test_x conftest$ac_exeext; then |
|
|
6050 | ac_cv_lib_socket_connect=yes |
|
|
6051 | else |
|
|
6052 | echo "$as_me: failed program was:" >&5 |
|
|
6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6054 | |
|
|
6055 | ac_cv_lib_socket_connect=no |
|
|
6056 | fi |
6622 | fi |
6057 | |
|
|
6058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6623 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6059 | conftest$ac_exeext conftest.$ac_ext |
6624 | conftest$ac_exeext conftest.$ac_ext |
6060 | LIBS=$ac_check_lib_save_LIBS |
6625 | LIBS=$ac_check_lib_save_LIBS |
6061 | fi |
6626 | fi |
6062 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
6627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
6063 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
6628 | printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } |
6064 | if test $ac_cv_lib_socket_connect = yes; then |
6629 | if test "x$ac_cv_lib_posix_remove" = xyes |
|
|
6630 | then : |
6065 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
6631 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
6066 | fi |
6632 | fi |
6067 | |
6633 | |
6068 | fi |
6634 | fi |
6069 | |
6635 | |
6070 | # Guillermo Gomez says -lposix is necessary on A/UX. |
6636 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
6071 | { echo "$as_me:$LINENO: checking for remove" >&5 |
6637 | ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
6072 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
6638 | if test "x$ac_cv_func_shmat" = xyes |
6073 | if test "${ac_cv_func_remove+set}" = set; then |
6639 | then : |
6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6640 | |
6075 | else |
6641 | fi |
6076 | cat >conftest.$ac_ext <<_ACEOF |
6642 | |
6077 | /* confdefs.h. */ |
6643 | if test $ac_cv_func_shmat = no; then |
6078 | _ACEOF |
6644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
|
|
6645 | printf %s "checking for shmat in -lipc... " >&6; } |
|
|
6646 | if test ${ac_cv_lib_ipc_shmat+y} |
|
|
6647 | then : |
|
|
6648 | printf %s "(cached) " >&6 |
|
|
6649 | else $as_nop |
|
|
6650 | ac_check_lib_save_LIBS=$LIBS |
|
|
6651 | LIBS="-lipc $LIBS" |
6079 | cat confdefs.h >>conftest.$ac_ext |
6652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6080 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6081 | /* end confdefs.h. */ |
6653 | /* end confdefs.h. */ |
6082 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
|
|
6083 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6084 | #define remove innocuous_remove |
|
|
6085 | |
6654 | |
6086 | /* System header to define __stub macros and hopefully few prototypes, |
6655 | namespace conftest { |
6087 | which can conflict with char remove (); below. |
6656 | extern "C" int shmat (); |
6088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6657 | } |
6089 | <limits.h> exists even on freestanding compilers. */ |
|
|
6090 | |
|
|
6091 | #ifdef __STDC__ |
|
|
6092 | # include <limits.h> |
|
|
6093 | #else |
|
|
6094 | # include <assert.h> |
|
|
6095 | #endif |
|
|
6096 | |
|
|
6097 | #undef remove |
|
|
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 remove (); |
|
|
6106 | /* The GNU C library defines this for functions which it implements |
|
|
6107 | to always fail with ENOSYS. Some functions are actually named |
|
|
6108 | something starting with __ and the normal name is an alias. */ |
|
|
6109 | #if defined __stub_remove || defined __stub___remove |
|
|
6110 | choke me |
|
|
6111 | #endif |
|
|
6112 | |
|
|
6113 | int |
6658 | int |
6114 | main () |
6659 | main (void) |
6115 | { |
6660 | { |
6116 | return remove (); |
6661 | return conftest::shmat (); |
6117 | ; |
6662 | ; |
6118 | return 0; |
6663 | return 0; |
6119 | } |
6664 | } |
6120 | _ACEOF |
6665 | _ACEOF |
6121 | rm -f conftest.$ac_objext conftest$ac_exeext |
6666 | if ac_fn_cxx_try_link "$LINENO" |
6122 | if { (ac_try="$ac_link" |
6667 | then : |
6123 | case "(($ac_try" in |
6668 | ac_cv_lib_ipc_shmat=yes |
6124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6669 | else $as_nop |
6125 | *) ac_try_echo=$ac_try;; |
6670 | ac_cv_lib_ipc_shmat=no |
6126 | esac |
|
|
6127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6128 | (eval "$ac_link") 2>conftest.er1 |
|
|
6129 | ac_status=$? |
|
|
6130 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6131 | rm -f conftest.er1 |
|
|
6132 | cat conftest.err >&5 |
|
|
6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6134 | (exit $ac_status); } && { |
|
|
6135 | test -z "$ac_cxx_werror_flag" || |
|
|
6136 | test ! -s conftest.err |
|
|
6137 | } && test -s conftest$ac_exeext && |
|
|
6138 | $as_test_x conftest$ac_exeext; then |
|
|
6139 | ac_cv_func_remove=yes |
|
|
6140 | else |
|
|
6141 | echo "$as_me: failed program was:" >&5 |
|
|
6142 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6143 | |
|
|
6144 | ac_cv_func_remove=no |
|
|
6145 | fi |
6671 | fi |
6146 | |
|
|
6147 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6672 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6148 | conftest$ac_exeext conftest.$ac_ext |
6673 | conftest$ac_exeext conftest.$ac_ext |
6149 | fi |
|
|
6150 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
|
|
6151 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
|
|
6152 | |
|
|
6153 | if test $ac_cv_func_remove = no; then |
|
|
6154 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
|
|
6155 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
|
|
6156 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
|
|
6157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6158 | else |
|
|
6159 | ac_check_lib_save_LIBS=$LIBS |
|
|
6160 | LIBS="-lposix $LIBS" |
|
|
6161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6162 | /* confdefs.h. */ |
|
|
6163 | _ACEOF |
|
|
6164 | cat confdefs.h >>conftest.$ac_ext |
|
|
6165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6166 | /* end confdefs.h. */ |
|
|
6167 | |
|
|
6168 | /* Override any GCC internal prototype to avoid an error. |
|
|
6169 | Use char because int might match the return type of a GCC |
|
|
6170 | builtin and then its argument prototype would still apply. */ |
|
|
6171 | #ifdef __cplusplus |
|
|
6172 | extern "C" |
|
|
6173 | #endif |
|
|
6174 | char remove (); |
|
|
6175 | int |
|
|
6176 | main () |
|
|
6177 | { |
|
|
6178 | return remove (); |
|
|
6179 | ; |
|
|
6180 | return 0; |
|
|
6181 | } |
|
|
6182 | _ACEOF |
|
|
6183 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6184 | if { (ac_try="$ac_link" |
|
|
6185 | case "(($ac_try" in |
|
|
6186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6187 | *) ac_try_echo=$ac_try;; |
|
|
6188 | esac |
|
|
6189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6190 | (eval "$ac_link") 2>conftest.er1 |
|
|
6191 | ac_status=$? |
|
|
6192 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6193 | rm -f conftest.er1 |
|
|
6194 | cat conftest.err >&5 |
|
|
6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6196 | (exit $ac_status); } && { |
|
|
6197 | test -z "$ac_cxx_werror_flag" || |
|
|
6198 | test ! -s conftest.err |
|
|
6199 | } && test -s conftest$ac_exeext && |
|
|
6200 | $as_test_x conftest$ac_exeext; then |
|
|
6201 | ac_cv_lib_posix_remove=yes |
|
|
6202 | else |
|
|
6203 | echo "$as_me: failed program was:" >&5 |
|
|
6204 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6205 | |
|
|
6206 | ac_cv_lib_posix_remove=no |
|
|
6207 | fi |
|
|
6208 | |
|
|
6209 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6210 | conftest$ac_exeext conftest.$ac_ext |
|
|
6211 | LIBS=$ac_check_lib_save_LIBS |
6674 | LIBS=$ac_check_lib_save_LIBS |
6212 | fi |
6675 | fi |
6213 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
|
|
6214 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
|
|
6215 | if test $ac_cv_lib_posix_remove = yes; then |
|
|
6216 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
|
|
6217 | fi |
|
|
6218 | |
|
|
6219 | fi |
|
|
6220 | |
|
|
6221 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
|
|
6222 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
|
|
6223 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
|
|
6224 | if test "${ac_cv_func_shmat+set}" = set; then |
|
|
6225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6226 | else |
|
|
6227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6228 | /* confdefs.h. */ |
|
|
6229 | _ACEOF |
|
|
6230 | cat confdefs.h >>conftest.$ac_ext |
|
|
6231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6232 | /* end confdefs.h. */ |
|
|
6233 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
|
|
6234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6235 | #define shmat innocuous_shmat |
|
|
6236 | |
|
|
6237 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6238 | which can conflict with char shmat (); below. |
|
|
6239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6240 | <limits.h> exists even on freestanding compilers. */ |
|
|
6241 | |
|
|
6242 | #ifdef __STDC__ |
|
|
6243 | # include <limits.h> |
|
|
6244 | #else |
|
|
6245 | # include <assert.h> |
|
|
6246 | #endif |
|
|
6247 | |
|
|
6248 | #undef shmat |
|
|
6249 | |
|
|
6250 | /* Override any GCC internal prototype to avoid an error. |
|
|
6251 | Use char because int might match the return type of a GCC |
|
|
6252 | builtin and then its argument prototype would still apply. */ |
|
|
6253 | #ifdef __cplusplus |
|
|
6254 | extern "C" |
|
|
6255 | #endif |
|
|
6256 | char shmat (); |
|
|
6257 | /* The GNU C library defines this for functions which it implements |
|
|
6258 | to always fail with ENOSYS. Some functions are actually named |
|
|
6259 | something starting with __ and the normal name is an alias. */ |
|
|
6260 | #if defined __stub_shmat || defined __stub___shmat |
|
|
6261 | choke me |
|
|
6262 | #endif |
|
|
6263 | |
|
|
6264 | int |
|
|
6265 | main () |
|
|
6266 | { |
|
|
6267 | return shmat (); |
|
|
6268 | ; |
|
|
6269 | return 0; |
|
|
6270 | } |
|
|
6271 | _ACEOF |
|
|
6272 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6273 | if { (ac_try="$ac_link" |
|
|
6274 | case "(($ac_try" in |
|
|
6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6276 | *) ac_try_echo=$ac_try;; |
|
|
6277 | esac |
|
|
6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6279 | (eval "$ac_link") 2>conftest.er1 |
|
|
6280 | ac_status=$? |
|
|
6281 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6282 | rm -f conftest.er1 |
|
|
6283 | cat conftest.err >&5 |
|
|
6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6285 | (exit $ac_status); } && { |
|
|
6286 | test -z "$ac_cxx_werror_flag" || |
|
|
6287 | test ! -s conftest.err |
|
|
6288 | } && test -s conftest$ac_exeext && |
|
|
6289 | $as_test_x conftest$ac_exeext; then |
|
|
6290 | ac_cv_func_shmat=yes |
|
|
6291 | else |
|
|
6292 | echo "$as_me: failed program was:" >&5 |
|
|
6293 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6294 | |
|
|
6295 | ac_cv_func_shmat=no |
|
|
6296 | fi |
|
|
6297 | |
|
|
6298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6299 | conftest$ac_exeext conftest.$ac_ext |
|
|
6300 | fi |
|
|
6301 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
|
|
6302 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
|
|
6303 | |
|
|
6304 | if test $ac_cv_func_shmat = no; then |
|
|
6305 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
|
|
6306 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
|
|
6307 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
|
|
6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6309 | else |
|
|
6310 | ac_check_lib_save_LIBS=$LIBS |
|
|
6311 | LIBS="-lipc $LIBS" |
|
|
6312 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6313 | /* confdefs.h. */ |
|
|
6314 | _ACEOF |
|
|
6315 | cat confdefs.h >>conftest.$ac_ext |
|
|
6316 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6317 | /* end confdefs.h. */ |
|
|
6318 | |
|
|
6319 | /* Override any GCC internal prototype to avoid an error. |
|
|
6320 | Use char because int might match the return type of a GCC |
|
|
6321 | builtin and then its argument prototype would still apply. */ |
|
|
6322 | #ifdef __cplusplus |
|
|
6323 | extern "C" |
|
|
6324 | #endif |
|
|
6325 | char shmat (); |
|
|
6326 | int |
|
|
6327 | main () |
|
|
6328 | { |
|
|
6329 | return shmat (); |
|
|
6330 | ; |
|
|
6331 | return 0; |
|
|
6332 | } |
|
|
6333 | _ACEOF |
|
|
6334 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6335 | if { (ac_try="$ac_link" |
|
|
6336 | case "(($ac_try" in |
|
|
6337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6338 | *) ac_try_echo=$ac_try;; |
|
|
6339 | esac |
|
|
6340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6341 | (eval "$ac_link") 2>conftest.er1 |
|
|
6342 | ac_status=$? |
|
|
6343 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6344 | rm -f conftest.er1 |
|
|
6345 | cat conftest.err >&5 |
|
|
6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6347 | (exit $ac_status); } && { |
|
|
6348 | test -z "$ac_cxx_werror_flag" || |
|
|
6349 | test ! -s conftest.err |
|
|
6350 | } && test -s conftest$ac_exeext && |
|
|
6351 | $as_test_x conftest$ac_exeext; then |
|
|
6352 | ac_cv_lib_ipc_shmat=yes |
|
|
6353 | else |
|
|
6354 | echo "$as_me: failed program was:" >&5 |
|
|
6355 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6356 | |
|
|
6357 | ac_cv_lib_ipc_shmat=no |
|
|
6358 | fi |
|
|
6359 | |
|
|
6360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6361 | conftest$ac_exeext conftest.$ac_ext |
|
|
6362 | LIBS=$ac_check_lib_save_LIBS |
|
|
6363 | fi |
|
|
6364 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
6676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
6365 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
6677 | printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } |
6366 | if test $ac_cv_lib_ipc_shmat = yes; then |
6678 | if test "x$ac_cv_lib_ipc_shmat" = xyes |
|
|
6679 | then : |
6367 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6680 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
6368 | fi |
6681 | fi |
6369 | |
6682 | |
6370 | fi |
6683 | fi |
6371 | fi |
6684 | fi |
… | |
… | |
6377 | # check for ICE first), but we must link in the order -lSM -lICE or |
6690 | # check for ICE first), but we must link in the order -lSM -lICE or |
6378 | # we get undefined symbols. So assume we have SM if we have ICE. |
6691 | # we get undefined symbols. So assume we have SM if we have ICE. |
6379 | # These have to be linked with before -lX11, unlike the other |
6692 | # These have to be linked with before -lX11, unlike the other |
6380 | # libraries we check for below, so use a different variable. |
6693 | # libraries we check for below, so use a different variable. |
6381 | # John Interrante, Karl Berry |
6694 | # John Interrante, Karl Berry |
6382 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
6695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
6383 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
6696 | printf %s "checking for IceConnectionNumber in -lICE... " >&6; } |
6384 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
6697 | if test ${ac_cv_lib_ICE_IceConnectionNumber+y} |
6385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6698 | then : |
6386 | else |
6699 | printf %s "(cached) " >&6 |
|
|
6700 | else $as_nop |
6387 | ac_check_lib_save_LIBS=$LIBS |
6701 | ac_check_lib_save_LIBS=$LIBS |
6388 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6702 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
6389 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6390 | /* confdefs.h. */ |
|
|
6391 | _ACEOF |
|
|
6392 | cat confdefs.h >>conftest.$ac_ext |
6703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6393 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6394 | /* end confdefs.h. */ |
6704 | /* end confdefs.h. */ |
6395 | |
6705 | |
6396 | /* Override any GCC internal prototype to avoid an error. |
6706 | namespace conftest { |
6397 | Use char because int might match the return type of a GCC |
6707 | extern "C" int IceConnectionNumber (); |
6398 | builtin and then its argument prototype would still apply. */ |
6708 | } |
6399 | #ifdef __cplusplus |
|
|
6400 | extern "C" |
|
|
6401 | #endif |
|
|
6402 | char IceConnectionNumber (); |
|
|
6403 | int |
6709 | int |
6404 | main () |
6710 | main (void) |
6405 | { |
6711 | { |
6406 | return IceConnectionNumber (); |
6712 | return conftest::IceConnectionNumber (); |
6407 | ; |
6713 | ; |
6408 | return 0; |
6714 | return 0; |
6409 | } |
6715 | } |
6410 | _ACEOF |
6716 | _ACEOF |
6411 | rm -f conftest.$ac_objext conftest$ac_exeext |
6717 | if ac_fn_cxx_try_link "$LINENO" |
6412 | if { (ac_try="$ac_link" |
6718 | then : |
6413 | case "(($ac_try" in |
|
|
6414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6415 | *) ac_try_echo=$ac_try;; |
|
|
6416 | esac |
|
|
6417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6418 | (eval "$ac_link") 2>conftest.er1 |
|
|
6419 | ac_status=$? |
|
|
6420 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6421 | rm -f conftest.er1 |
|
|
6422 | cat conftest.err >&5 |
|
|
6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6424 | (exit $ac_status); } && { |
|
|
6425 | test -z "$ac_cxx_werror_flag" || |
|
|
6426 | test ! -s conftest.err |
|
|
6427 | } && test -s conftest$ac_exeext && |
|
|
6428 | $as_test_x conftest$ac_exeext; then |
|
|
6429 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6719 | ac_cv_lib_ICE_IceConnectionNumber=yes |
6430 | else |
6720 | else $as_nop |
6431 | echo "$as_me: failed program was:" >&5 |
|
|
6432 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6433 | |
|
|
6434 | ac_cv_lib_ICE_IceConnectionNumber=no |
6721 | ac_cv_lib_ICE_IceConnectionNumber=no |
6435 | fi |
6722 | fi |
6436 | |
|
|
6437 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6723 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6438 | conftest$ac_exeext conftest.$ac_ext |
6724 | conftest$ac_exeext conftest.$ac_ext |
6439 | LIBS=$ac_check_lib_save_LIBS |
6725 | LIBS=$ac_check_lib_save_LIBS |
6440 | fi |
6726 | fi |
6441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
6727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
6442 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6728 | printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
6443 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
6729 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes |
|
|
6730 | then : |
6444 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6731 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
6445 | fi |
6732 | fi |
6446 | |
6733 | |
6447 | LDFLAGS=$ac_save_LDFLAGS |
6734 | LDFLAGS=$ac_save_LDFLAGS |
6448 | |
6735 | |
6449 | fi |
6736 | fi |
6450 | |
6737 | |
6451 | |
6738 | |
6452 | |
6739 | if test -n "$ac_tool_prefix"; then |
6453 | AFTERIMAGE_CFLAGS= |
|
|
6454 | AFTERIMAGE_LIBS= |
|
|
6455 | AFTERIMAGE_VERSION= |
|
|
6456 | |
|
|
6457 | if test x$support_afterimage = xyes; then |
|
|
6458 | support_afterimage=no |
|
|
6459 | |
|
|
6460 | if test "x$afterimage_config" = "x" ; then |
|
|
6461 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6462 | set dummy afterimage-config; ac_word=$2 |
|
|
6463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
6464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
6465 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
|
|
6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6467 | else |
|
|
6468 | case $afterimage_config in |
|
|
6469 | [\\/]* | ?:[\\/]*) |
|
|
6470 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6471 | ;; |
|
|
6472 | *) |
|
|
6473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6474 | for as_dir in $PATH |
|
|
6475 | do |
|
|
6476 | IFS=$as_save_IFS |
|
|
6477 | test -z "$as_dir" && as_dir=. |
|
|
6478 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6480 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6482 | break 2 |
|
|
6483 | fi |
|
|
6484 | done |
|
|
6485 | done |
|
|
6486 | IFS=$as_save_IFS |
|
|
6487 | |
|
|
6488 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6489 | ;; |
|
|
6490 | esac |
|
|
6491 | fi |
|
|
6492 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6493 | if test -n "$afterimage_config"; then |
|
|
6494 | { echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
|
|
6495 | echo "${ECHO_T}$afterimage_config" >&6; } |
|
|
6496 | else |
|
|
6497 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6498 | echo "${ECHO_T}no" >&6; } |
|
|
6499 | fi |
|
|
6500 | |
|
|
6501 | |
|
|
6502 | fi |
|
|
6503 | if test "x$afterimage_config" != "xno" ; then |
|
|
6504 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
|
|
6505 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
|
|
6506 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
6507 | if test -n "$xAFTERIMAGE_VERSION" ; then |
|
|
6508 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6509 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6510 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
|
|
6511 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
6512 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
6513 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
|
|
6514 | support_afterimage=yes |
|
|
6515 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
|
|
6516 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
|
|
6517 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
|
|
6518 | fi |
|
|
6519 | fi |
|
|
6520 | fi |
|
|
6521 | if test "x$support_afterimage" = "xyes"; then |
|
|
6522 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6523 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
6524 | else |
|
|
6525 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6526 | echo "${ECHO_T}no" >&6; } |
|
|
6527 | fi |
|
|
6528 | fi |
|
|
6529 | fi |
|
|
6530 | |
|
|
6531 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6532 | |
|
|
6533 | |
|
|
6534 | |
|
|
6535 | # Initialize some more variables set by options. |
|
|
6536 | # The variables have the same names as the options, with |
|
|
6537 | # dashes changed to underlines. |
|
|
6538 | |
|
|
6539 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6540 | # paths, otherwise set no_xpm=yes. |
|
|
6541 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6542 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6543 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6544 | |
|
|
6545 | |
|
|
6546 | # Check whether --with-xpm_includes was given. |
|
|
6547 | if test "${with_xpm_includes+set}" = set; then |
|
|
6548 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6549 | else |
|
|
6550 | xpm_includes=NO |
|
|
6551 | fi |
|
|
6552 | |
|
|
6553 | |
|
|
6554 | # Check whether --with-xpm_library was given. |
|
|
6555 | if test "${with_xpm_library+set}" = set; then |
|
|
6556 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6557 | else |
|
|
6558 | xpm_libraries=NO |
|
|
6559 | fi |
|
|
6560 | |
|
|
6561 | |
|
|
6562 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6563 | |
|
|
6564 | # Check whether --with-xpm was given. |
|
|
6565 | if test "${with_xpm+set}" = set; then |
|
|
6566 | withval=$with_xpm; |
|
|
6567 | fi |
|
|
6568 | |
|
|
6569 | if test "$with_xpm" = no; then |
|
|
6570 | have_xpm=disabled |
|
|
6571 | else |
|
|
6572 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6574 | else |
|
|
6575 | |
|
|
6576 | vt_xpm_include_X11=no |
|
|
6577 | if test -n "$xpm_includes"; then |
|
|
6578 | vt_xpm_includes=$xpm_includes |
|
|
6579 | else |
|
|
6580 | vt_xpm_includes=NO |
|
|
6581 | fi |
|
|
6582 | if test -n "$xpm_libraries"; then |
|
|
6583 | vt_xpm_libraries=$xpm_libraries |
|
|
6584 | else |
|
|
6585 | vt_xpm_libraries=NO |
|
|
6586 | fi |
|
|
6587 | |
|
|
6588 | if test "$vt_xpm_includes" = NO; then |
|
|
6589 | # Guess where to find xpm.h |
|
|
6590 | |
|
|
6591 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6592 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6593 | |
|
|
6594 | # First, try using that file with no special directory specified. |
|
|
6595 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6596 | /* confdefs.h. */ |
|
|
6597 | _ACEOF |
|
|
6598 | cat confdefs.h >>conftest.$ac_ext |
|
|
6599 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6600 | /* end confdefs.h. */ |
|
|
6601 | #include <X11/xpm.h> |
|
|
6602 | _ACEOF |
|
|
6603 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6604 | case "(($ac_try" in |
|
|
6605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6606 | *) ac_try_echo=$ac_try;; |
|
|
6607 | esac |
|
|
6608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6609 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6610 | ac_status=$? |
|
|
6611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6612 | rm -f conftest.er1 |
|
|
6613 | cat conftest.err >&5 |
|
|
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6615 | (exit $ac_status); } >/dev/null && { |
|
|
6616 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6617 | test ! -s conftest.err |
|
|
6618 | }; then |
|
|
6619 | # We can compile using X headers with no special include directory. |
|
|
6620 | vt_xpm_includes= |
|
|
6621 | vt_xpm_include_X11=yes |
|
|
6622 | else |
|
|
6623 | echo "$as_me: failed program was:" >&5 |
|
|
6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6625 | |
|
|
6626 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6627 | # Look for the header file in a standard set of common directories. |
|
|
6628 | for ac_dir in \ |
|
|
6629 | /usr/X11/include \ |
|
|
6630 | /usr/X11R6/include \ |
|
|
6631 | /usr/X11R5/include \ |
|
|
6632 | /usr/X11R4/include \ |
|
|
6633 | \ |
|
|
6634 | /usr/include/X11 \ |
|
|
6635 | /usr/include/X11R6 \ |
|
|
6636 | /usr/include/X11R5 \ |
|
|
6637 | /usr/include/X11R4 \ |
|
|
6638 | \ |
|
|
6639 | /usr/local/X11/include \ |
|
|
6640 | /usr/local/X11R6/include \ |
|
|
6641 | /usr/local/X11R5/include \ |
|
|
6642 | /usr/local/X11R4/include \ |
|
|
6643 | \ |
|
|
6644 | /usr/local/include/X11 \ |
|
|
6645 | /usr/local/include/X11R6 \ |
|
|
6646 | /usr/local/include/X11R5 \ |
|
|
6647 | /usr/local/include/X11R4 \ |
|
|
6648 | \ |
|
|
6649 | /usr/X386/include \ |
|
|
6650 | /usr/x386/include \ |
|
|
6651 | /usr/XFree86/include/X11 \ |
|
|
6652 | \ |
|
|
6653 | /usr/include \ |
|
|
6654 | /usr/local/include \ |
|
|
6655 | /usr/unsupported/include \ |
|
|
6656 | /usr/athena/include \ |
|
|
6657 | /usr/local/x11r5/include \ |
|
|
6658 | /usr/lpp/Xamples/include \ |
|
|
6659 | \ |
|
|
6660 | /usr/openwin/include \ |
|
|
6661 | /usr/openwin/share/include \ |
|
|
6662 | ; \ |
|
|
6663 | do |
|
|
6664 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6665 | vt_xpm_includes="$ac_dir" |
|
|
6666 | vt_xpm_include_X11=yes |
|
|
6667 | break |
|
|
6668 | else |
|
|
6669 | if test -r "$ac_dir/xpm.h"; then |
|
|
6670 | vt_xpm_includes=$ac_dir |
|
|
6671 | break |
|
|
6672 | fi |
|
|
6673 | fi |
|
|
6674 | done |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | rm -f conftest.err conftest.$ac_ext |
|
|
6678 | fi |
|
|
6679 | |
|
|
6680 | if test "$vt_xpm_libraries" = NO; then |
|
|
6681 | # Check for the libraries. |
|
|
6682 | |
|
|
6683 | # See if we find them without any special options. |
|
|
6684 | # Don't add to $LIBS permanently. |
|
|
6685 | ac_save_LIBS="$LIBS" |
|
|
6686 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6688 | /* confdefs.h. */ |
|
|
6689 | _ACEOF |
|
|
6690 | cat confdefs.h >>conftest.$ac_ext |
|
|
6691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6692 | /* end confdefs.h. */ |
|
|
6693 | |
|
|
6694 | int |
|
|
6695 | main () |
|
|
6696 | { |
|
|
6697 | XpmReadFileToPixmap() |
|
|
6698 | ; |
|
|
6699 | return 0; |
|
|
6700 | } |
|
|
6701 | _ACEOF |
|
|
6702 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6703 | if { (ac_try="$ac_link" |
|
|
6704 | case "(($ac_try" in |
|
|
6705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6706 | *) ac_try_echo=$ac_try;; |
|
|
6707 | esac |
|
|
6708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6709 | (eval "$ac_link") 2>conftest.er1 |
|
|
6710 | ac_status=$? |
|
|
6711 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6712 | rm -f conftest.er1 |
|
|
6713 | cat conftest.err >&5 |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); } && { |
|
|
6716 | test -z "$ac_cxx_werror_flag" || |
|
|
6717 | test ! -s conftest.err |
|
|
6718 | } && test -s conftest$ac_exeext && |
|
|
6719 | $as_test_x conftest$ac_exeext; then |
|
|
6720 | LIBS="$ac_save_LIBS" |
|
|
6721 | # We can link libXpm with no special library path. |
|
|
6722 | vt_xpm_libraries= |
|
|
6723 | else |
|
|
6724 | echo "$as_me: failed program was:" >&5 |
|
|
6725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6726 | |
|
|
6727 | LIBS="$ac_save_LIBS" |
|
|
6728 | # First see if replacing the include by lib works. |
|
|
6729 | for ac_dir in \ |
|
|
6730 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6731 | /usr/X11/lib \ |
|
|
6732 | /usr/X11R6/lib \ |
|
|
6733 | /usr/X11R5/lib \ |
|
|
6734 | /usr/X11R4/lib \ |
|
|
6735 | \ |
|
|
6736 | /usr/lib/X11 \ |
|
|
6737 | /usr/lib/X11R6 \ |
|
|
6738 | /usr/lib/X11R5 \ |
|
|
6739 | /usr/lib/X11R4 \ |
|
|
6740 | \ |
|
|
6741 | /usr/local/X11/lib \ |
|
|
6742 | /usr/local/X11R6/lib \ |
|
|
6743 | /usr/local/X11R5/lib \ |
|
|
6744 | /usr/local/X11R4/lib \ |
|
|
6745 | \ |
|
|
6746 | /usr/local/lib/X11 \ |
|
|
6747 | /usr/local/lib/X11R6 \ |
|
|
6748 | /usr/local/lib/X11R5 \ |
|
|
6749 | /usr/local/lib/X11R4 \ |
|
|
6750 | \ |
|
|
6751 | /usr/X386/lib \ |
|
|
6752 | /usr/x386/lib \ |
|
|
6753 | /usr/XFree86/lib/X11 \ |
|
|
6754 | \ |
|
|
6755 | /usr/lib \ |
|
|
6756 | /usr/local/lib \ |
|
|
6757 | /usr/unsupported/lib \ |
|
|
6758 | /usr/athena/lib \ |
|
|
6759 | /usr/local/x11r5/lib \ |
|
|
6760 | /usr/lpp/Xamples/lib \ |
|
|
6761 | \ |
|
|
6762 | /usr/openwin/lib \ |
|
|
6763 | /usr/openwin/share/lib \ |
|
|
6764 | ; \ |
|
|
6765 | do |
|
|
6766 | for ac_extension in a so sl; do |
|
|
6767 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6768 | vt_xpm_libraries=$ac_dir |
|
|
6769 | break 2 |
|
|
6770 | fi |
|
|
6771 | done |
|
|
6772 | done |
|
|
6773 | fi |
|
|
6774 | |
|
|
6775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6776 | conftest$ac_exeext conftest.$ac_ext |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | |
|
|
6780 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6781 | ac_cv_have_xpm="have_xpm=no" |
|
|
6782 | else |
|
|
6783 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6784 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6785 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6786 | fi |
|
|
6787 | fi |
|
|
6788 | eval "$ac_cv_have_xpm" |
|
|
6789 | fi |
|
|
6790 | |
|
|
6791 | if test "$have_xpm" != yes; then |
|
|
6792 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6793 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6794 | no_xpm=yes |
|
|
6795 | else |
|
|
6796 | if test "$xpm_includes" != NO; then |
|
|
6797 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6798 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6799 | vt_xpm_include_X11=yes |
|
|
6800 | fi |
|
|
6801 | else |
|
|
6802 | vt_xpm_include_X11=no |
|
|
6803 | if test -z "$xpm_includes"; then |
|
|
6804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6805 | /* confdefs.h. */ |
|
|
6806 | _ACEOF |
|
|
6807 | cat confdefs.h >>conftest.$ac_ext |
|
|
6808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6809 | /* end confdefs.h. */ |
|
|
6810 | #include <X11/xpm.h> |
|
|
6811 | _ACEOF |
|
|
6812 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6813 | case "(($ac_try" in |
|
|
6814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6815 | *) ac_try_echo=$ac_try;; |
|
|
6816 | esac |
|
|
6817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6819 | ac_status=$? |
|
|
6820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6821 | rm -f conftest.er1 |
|
|
6822 | cat conftest.err >&5 |
|
|
6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6824 | (exit $ac_status); } >/dev/null && { |
|
|
6825 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6826 | test ! -s conftest.err |
|
|
6827 | }; then |
|
|
6828 | vt_xpm_include_X11=yes |
|
|
6829 | else |
|
|
6830 | echo "$as_me: failed program was:" >&5 |
|
|
6831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6832 | |
|
|
6833 | |
|
|
6834 | fi |
|
|
6835 | |
|
|
6836 | rm -f conftest.err conftest.$ac_ext |
|
|
6837 | else |
|
|
6838 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6839 | vt_xpm_include_X11=yes |
|
|
6840 | fi |
|
|
6841 | fi |
|
|
6842 | fi |
|
|
6843 | vt_xpm_includes=$xpm_includes |
|
|
6844 | fi |
|
|
6845 | if test "x$xpm_libraries" != xNO; then |
|
|
6846 | vt_xpm_libraries=$xpm_libraries |
|
|
6847 | fi |
|
|
6848 | # Update the cache value to reflect the command line values. |
|
|
6849 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6850 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6851 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6852 | eval "$ac_cv_have_xpm" |
|
|
6853 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6854 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6855 | if test -n "$vt_xpm_includes"; then |
|
|
6856 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6857 | fi |
|
|
6858 | if test -n "$vt_xpm_includes"; then |
|
|
6859 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6860 | fi |
|
|
6861 | XPM_LIBS="-lXpm" |
|
|
6862 | if test -n "$vt_xpm_libraries"; then |
|
|
6863 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6864 | fi |
|
|
6865 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6866 | |
|
|
6867 | cat >>confdefs.h <<\_ACEOF |
|
|
6868 | #define XPM_INC_X11 1 |
|
|
6869 | _ACEOF |
|
|
6870 | |
|
|
6871 | fi |
|
|
6872 | fi |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | if test x$no_xpm = xyes; then |
|
|
6879 | support_xpm=needsmanualspecification |
|
|
6880 | fi |
|
|
6881 | fi |
|
|
6882 | |
|
|
6883 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6884 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6885 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6887 | else |
|
|
6888 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6889 | /* confdefs.h. */ |
|
|
6890 | _ACEOF |
|
|
6891 | cat confdefs.h >>conftest.$ac_ext |
|
|
6892 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6893 | /* end confdefs.h. */ |
|
|
6894 | #include <sys/types.h> |
|
|
6895 | #include <sys/wait.h> |
|
|
6896 | #ifndef WEXITSTATUS |
|
|
6897 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6898 | #endif |
|
|
6899 | #ifndef WIFEXITED |
|
|
6900 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6901 | #endif |
|
|
6902 | |
|
|
6903 | int |
|
|
6904 | main () |
|
|
6905 | { |
|
|
6906 | int s; |
|
|
6907 | wait (&s); |
|
|
6908 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6909 | ; |
|
|
6910 | return 0; |
|
|
6911 | } |
|
|
6912 | _ACEOF |
|
|
6913 | rm -f conftest.$ac_objext |
|
|
6914 | if { (ac_try="$ac_compile" |
|
|
6915 | case "(($ac_try" in |
|
|
6916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6917 | *) ac_try_echo=$ac_try;; |
|
|
6918 | esac |
|
|
6919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6920 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6921 | ac_status=$? |
|
|
6922 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6923 | rm -f conftest.er1 |
|
|
6924 | cat conftest.err >&5 |
|
|
6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6926 | (exit $ac_status); } && { |
|
|
6927 | test -z "$ac_cxx_werror_flag" || |
|
|
6928 | test ! -s conftest.err |
|
|
6929 | } && test -s conftest.$ac_objext; then |
|
|
6930 | ac_cv_header_sys_wait_h=yes |
|
|
6931 | else |
|
|
6932 | echo "$as_me: failed program was:" >&5 |
|
|
6933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6934 | |
|
|
6935 | ac_cv_header_sys_wait_h=no |
|
|
6936 | fi |
|
|
6937 | |
|
|
6938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6939 | fi |
|
|
6940 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6941 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6942 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6943 | |
|
|
6944 | cat >>confdefs.h <<\_ACEOF |
|
|
6945 | #define HAVE_SYS_WAIT_H 1 |
|
|
6946 | _ACEOF |
|
|
6947 | |
|
|
6948 | fi |
|
|
6949 | |
|
|
6950 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6951 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6952 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6954 | else |
|
|
6955 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6956 | /* confdefs.h. */ |
|
|
6957 | _ACEOF |
|
|
6958 | cat confdefs.h >>conftest.$ac_ext |
|
|
6959 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* end confdefs.h. */ |
|
|
6961 | #include <stdlib.h> |
|
|
6962 | #include <stdarg.h> |
|
|
6963 | #include <string.h> |
|
|
6964 | #include <float.h> |
|
|
6965 | |
|
|
6966 | int |
|
|
6967 | main () |
|
|
6968 | { |
|
|
6969 | |
|
|
6970 | ; |
|
|
6971 | return 0; |
|
|
6972 | } |
|
|
6973 | _ACEOF |
|
|
6974 | rm -f conftest.$ac_objext |
|
|
6975 | if { (ac_try="$ac_compile" |
|
|
6976 | case "(($ac_try" in |
|
|
6977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6978 | *) ac_try_echo=$ac_try;; |
|
|
6979 | esac |
|
|
6980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6981 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6982 | ac_status=$? |
|
|
6983 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6984 | rm -f conftest.er1 |
|
|
6985 | cat conftest.err >&5 |
|
|
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6987 | (exit $ac_status); } && { |
|
|
6988 | test -z "$ac_cxx_werror_flag" || |
|
|
6989 | test ! -s conftest.err |
|
|
6990 | } && test -s conftest.$ac_objext; then |
|
|
6991 | ac_cv_header_stdc=yes |
|
|
6992 | else |
|
|
6993 | echo "$as_me: failed program was:" >&5 |
|
|
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6995 | |
|
|
6996 | ac_cv_header_stdc=no |
|
|
6997 | fi |
|
|
6998 | |
|
|
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7000 | |
|
|
7001 | if test $ac_cv_header_stdc = yes; then |
|
|
7002 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7003 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7004 | /* confdefs.h. */ |
|
|
7005 | _ACEOF |
|
|
7006 | cat confdefs.h >>conftest.$ac_ext |
|
|
7007 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7008 | /* end confdefs.h. */ |
|
|
7009 | #include <string.h> |
|
|
7010 | |
|
|
7011 | _ACEOF |
|
|
7012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7013 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7014 | : |
|
|
7015 | else |
|
|
7016 | ac_cv_header_stdc=no |
|
|
7017 | fi |
|
|
7018 | rm -f conftest* |
|
|
7019 | |
|
|
7020 | fi |
|
|
7021 | |
|
|
7022 | if test $ac_cv_header_stdc = yes; then |
|
|
7023 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7025 | /* confdefs.h. */ |
|
|
7026 | _ACEOF |
|
|
7027 | cat confdefs.h >>conftest.$ac_ext |
|
|
7028 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdlib.h> |
|
|
7031 | |
|
|
7032 | _ACEOF |
|
|
7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7034 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7035 | : |
|
|
7036 | else |
|
|
7037 | ac_cv_header_stdc=no |
|
|
7038 | fi |
|
|
7039 | rm -f conftest* |
|
|
7040 | |
|
|
7041 | fi |
|
|
7042 | |
|
|
7043 | if test $ac_cv_header_stdc = yes; then |
|
|
7044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7045 | if test "$cross_compiling" = yes; then |
|
|
7046 | : |
|
|
7047 | else |
|
|
7048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7049 | /* confdefs.h. */ |
|
|
7050 | _ACEOF |
|
|
7051 | cat confdefs.h >>conftest.$ac_ext |
|
|
7052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* end confdefs.h. */ |
|
|
7054 | #include <ctype.h> |
|
|
7055 | #include <stdlib.h> |
|
|
7056 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7059 | #else |
|
|
7060 | # define ISLOWER(c) \ |
|
|
7061 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7062 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7063 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7065 | #endif |
|
|
7066 | |
|
|
7067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7068 | int |
|
|
7069 | main () |
|
|
7070 | { |
|
|
7071 | int i; |
|
|
7072 | for (i = 0; i < 256; i++) |
|
|
7073 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7074 | || toupper (i) != TOUPPER (i)) |
|
|
7075 | return 2; |
|
|
7076 | return 0; |
|
|
7077 | } |
|
|
7078 | _ACEOF |
|
|
7079 | rm -f conftest$ac_exeext |
|
|
7080 | if { (ac_try="$ac_link" |
|
|
7081 | case "(($ac_try" in |
|
|
7082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7083 | *) ac_try_echo=$ac_try;; |
|
|
7084 | esac |
|
|
7085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7086 | (eval "$ac_link") 2>&5 |
|
|
7087 | ac_status=$? |
|
|
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7090 | { (case "(($ac_try" in |
|
|
7091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7092 | *) ac_try_echo=$ac_try;; |
|
|
7093 | esac |
|
|
7094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7095 | (eval "$ac_try") 2>&5 |
|
|
7096 | ac_status=$? |
|
|
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7098 | (exit $ac_status); }; }; then |
|
|
7099 | : |
|
|
7100 | else |
|
|
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | ( exit $ac_status ) |
|
|
7106 | ac_cv_header_stdc=no |
|
|
7107 | fi |
|
|
7108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | |
|
|
7111 | |
|
|
7112 | fi |
|
|
7113 | fi |
|
|
7114 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7115 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7116 | if test $ac_cv_header_stdc = yes; then |
|
|
7117 | |
|
|
7118 | cat >>confdefs.h <<\_ACEOF |
|
|
7119 | #define STDC_HEADERS 1 |
|
|
7120 | _ACEOF |
|
|
7121 | |
|
|
7122 | fi |
|
|
7123 | |
|
|
7124 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7125 | |
|
|
7126 | |
|
|
7127 | |
|
|
7128 | |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7135 | inttypes.h stdint.h unistd.h |
|
|
7136 | do |
|
|
7137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7138 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7140 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7142 | else |
|
|
7143 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7144 | /* confdefs.h. */ |
|
|
7145 | _ACEOF |
|
|
7146 | cat confdefs.h >>conftest.$ac_ext |
|
|
7147 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* end confdefs.h. */ |
|
|
7149 | $ac_includes_default |
|
|
7150 | |
|
|
7151 | #include <$ac_header> |
|
|
7152 | _ACEOF |
|
|
7153 | rm -f conftest.$ac_objext |
|
|
7154 | if { (ac_try="$ac_compile" |
|
|
7155 | case "(($ac_try" in |
|
|
7156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7157 | *) ac_try_echo=$ac_try;; |
|
|
7158 | esac |
|
|
7159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7160 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7161 | ac_status=$? |
|
|
7162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7163 | rm -f conftest.er1 |
|
|
7164 | cat conftest.err >&5 |
|
|
7165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7166 | (exit $ac_status); } && { |
|
|
7167 | test -z "$ac_cxx_werror_flag" || |
|
|
7168 | test ! -s conftest.err |
|
|
7169 | } && test -s conftest.$ac_objext; then |
|
|
7170 | eval "$as_ac_Header=yes" |
|
|
7171 | else |
|
|
7172 | echo "$as_me: failed program was:" >&5 |
|
|
7173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7174 | |
|
|
7175 | eval "$as_ac_Header=no" |
|
|
7176 | fi |
|
|
7177 | |
|
|
7178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7179 | fi |
|
|
7180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7182 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7184 | cat >>confdefs.h <<_ACEOF |
|
|
7185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7186 | _ACEOF |
|
|
7187 | |
|
|
7188 | fi |
|
|
7189 | |
|
|
7190 | done |
|
|
7191 | |
|
|
7192 | |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
|
|
7199 | |
|
|
7200 | |
|
|
7201 | |
|
|
7202 | |
|
|
7203 | |
|
|
7204 | |
|
|
7205 | |
|
|
7206 | |
|
|
7207 | |
|
|
7208 | |
|
|
7209 | |
|
|
7210 | for ac_header in \ |
|
|
7211 | assert.h \ |
|
|
7212 | fcntl.h \ |
|
|
7213 | stdarg.h \ |
|
|
7214 | stdlib.h \ |
|
|
7215 | string.h \ |
|
|
7216 | termios.h \ |
|
|
7217 | unistd.h \ |
|
|
7218 | sys/byteorder.h \ |
|
|
7219 | sys/ioctl.h \ |
|
|
7220 | sys/select.h \ |
|
|
7221 | sys/sockio.h \ |
|
|
7222 | sys/strredir.h \ |
|
|
7223 | sys/time.h \ |
|
|
7224 | stdint.h \ |
|
|
7225 | wchar.h \ |
|
|
7226 | cwchar \ |
|
|
7227 | clocale \ |
|
|
7228 | |
|
|
7229 | do |
|
|
7230 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7231 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7232 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7234 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7236 | fi |
|
|
7237 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7238 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7239 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7240 | else |
|
|
7241 | # Is the header compilable? |
|
|
7242 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
7243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
7244 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7245 | /* confdefs.h. */ |
|
|
7246 | _ACEOF |
|
|
7247 | cat confdefs.h >>conftest.$ac_ext |
|
|
7248 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7249 | /* end confdefs.h. */ |
|
|
7250 | $ac_includes_default |
|
|
7251 | #include <$ac_header> |
|
|
7252 | _ACEOF |
|
|
7253 | rm -f conftest.$ac_objext |
|
|
7254 | if { (ac_try="$ac_compile" |
|
|
7255 | case "(($ac_try" in |
|
|
7256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7257 | *) ac_try_echo=$ac_try;; |
|
|
7258 | esac |
|
|
7259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7260 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7261 | ac_status=$? |
|
|
7262 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7263 | rm -f conftest.er1 |
|
|
7264 | cat conftest.err >&5 |
|
|
7265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7266 | (exit $ac_status); } && { |
|
|
7267 | test -z "$ac_cxx_werror_flag" || |
|
|
7268 | test ! -s conftest.err |
|
|
7269 | } && test -s conftest.$ac_objext; then |
|
|
7270 | ac_header_compiler=yes |
|
|
7271 | else |
|
|
7272 | echo "$as_me: failed program was:" >&5 |
|
|
7273 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7274 | |
|
|
7275 | ac_header_compiler=no |
|
|
7276 | fi |
|
|
7277 | |
|
|
7278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7279 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
7280 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
7281 | |
|
|
7282 | # Is the header present? |
|
|
7283 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
7284 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
7285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7286 | /* confdefs.h. */ |
|
|
7287 | _ACEOF |
|
|
7288 | cat confdefs.h >>conftest.$ac_ext |
|
|
7289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7290 | /* end confdefs.h. */ |
|
|
7291 | #include <$ac_header> |
|
|
7292 | _ACEOF |
|
|
7293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
7294 | case "(($ac_try" in |
|
|
7295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7296 | *) ac_try_echo=$ac_try;; |
|
|
7297 | esac |
|
|
7298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7299 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
7300 | ac_status=$? |
|
|
7301 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7302 | rm -f conftest.er1 |
|
|
7303 | cat conftest.err >&5 |
|
|
7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7305 | (exit $ac_status); } >/dev/null && { |
|
|
7306 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
7307 | test ! -s conftest.err |
|
|
7308 | }; then |
|
|
7309 | ac_header_preproc=yes |
|
|
7310 | else |
|
|
7311 | echo "$as_me: failed program was:" >&5 |
|
|
7312 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7313 | |
|
|
7314 | ac_header_preproc=no |
|
|
7315 | fi |
|
|
7316 | |
|
|
7317 | rm -f conftest.err conftest.$ac_ext |
|
|
7318 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
7319 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
7320 | |
|
|
7321 | # So? What about this header? |
|
|
7322 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
7323 | yes:no: ) |
|
|
7324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
7325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
7326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
7327 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
7328 | ac_header_preproc=yes |
|
|
7329 | ;; |
|
|
7330 | no:yes:* ) |
|
|
7331 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
7332 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
7333 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
7334 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
7335 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
7336 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
7337 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
7338 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
7339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
7340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
7341 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
7342 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
7343 | |
|
|
7344 | ;; |
|
|
7345 | esac |
|
|
7346 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7350 | else |
|
|
7351 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
7352 | fi |
|
|
7353 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7354 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7355 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7356 | |
|
|
7357 | fi |
|
|
7358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7359 | cat >>confdefs.h <<_ACEOF |
|
|
7360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7361 | _ACEOF |
|
|
7362 | |
|
|
7363 | fi |
|
|
7364 | |
|
|
7365 | done |
|
|
7366 | |
|
|
7367 | |
|
|
7368 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7369 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7370 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7372 | else |
|
|
7373 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7374 | /* confdefs.h. */ |
|
|
7375 | _ACEOF |
|
|
7376 | cat confdefs.h >>conftest.$ac_ext |
|
|
7377 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7378 | /* end confdefs.h. */ |
|
|
7379 | #include <sys/types.h> |
|
|
7380 | #include <sys/time.h> |
|
|
7381 | #include <time.h> |
|
|
7382 | |
|
|
7383 | int |
|
|
7384 | main () |
|
|
7385 | { |
|
|
7386 | if ((struct tm *) 0) |
|
|
7387 | return 0; |
|
|
7388 | ; |
|
|
7389 | return 0; |
|
|
7390 | } |
|
|
7391 | _ACEOF |
|
|
7392 | rm -f conftest.$ac_objext |
|
|
7393 | if { (ac_try="$ac_compile" |
|
|
7394 | case "(($ac_try" in |
|
|
7395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7396 | *) ac_try_echo=$ac_try;; |
|
|
7397 | esac |
|
|
7398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7399 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7400 | ac_status=$? |
|
|
7401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7402 | rm -f conftest.er1 |
|
|
7403 | cat conftest.err >&5 |
|
|
7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7405 | (exit $ac_status); } && { |
|
|
7406 | test -z "$ac_cxx_werror_flag" || |
|
|
7407 | test ! -s conftest.err |
|
|
7408 | } && test -s conftest.$ac_objext; then |
|
|
7409 | ac_cv_header_time=yes |
|
|
7410 | else |
|
|
7411 | echo "$as_me: failed program was:" >&5 |
|
|
7412 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7413 | |
|
|
7414 | ac_cv_header_time=no |
|
|
7415 | fi |
|
|
7416 | |
|
|
7417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7418 | fi |
|
|
7419 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7420 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7421 | if test $ac_cv_header_time = yes; then |
|
|
7422 | |
|
|
7423 | cat >>confdefs.h <<\_ACEOF |
|
|
7424 | #define TIME_WITH_SYS_TIME 1 |
|
|
7425 | _ACEOF |
|
|
7426 | |
|
|
7427 | fi |
|
|
7428 | |
|
|
7429 | |
|
|
7430 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7431 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7432 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7434 | else |
|
|
7435 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7436 | /* confdefs.h. */ |
|
|
7437 | _ACEOF |
|
|
7438 | cat confdefs.h >>conftest.$ac_ext |
|
|
7439 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7440 | /* end confdefs.h. */ |
|
|
7441 | #include <stdio.h> |
|
|
7442 | #include <sys/ioctl.h> |
|
|
7443 | #ifdef HAVE_TERMIOS_H |
|
|
7444 | #include <termios.h> |
|
|
7445 | #endif |
|
|
7446 | int |
|
|
7447 | main () |
|
|
7448 | { |
|
|
7449 | int a = ECHO; |
|
|
7450 | ; |
|
|
7451 | return 0; |
|
|
7452 | } |
|
|
7453 | _ACEOF |
|
|
7454 | rm -f conftest.$ac_objext |
|
|
7455 | if { (ac_try="$ac_compile" |
|
|
7456 | case "(($ac_try" in |
|
|
7457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7458 | *) ac_try_echo=$ac_try;; |
|
|
7459 | esac |
|
|
7460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7461 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7462 | ac_status=$? |
|
|
7463 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7464 | rm -f conftest.er1 |
|
|
7465 | cat conftest.err >&5 |
|
|
7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7467 | (exit $ac_status); } && { |
|
|
7468 | test -z "$ac_cxx_werror_flag" || |
|
|
7469 | test ! -s conftest.err |
|
|
7470 | } && test -s conftest.$ac_objext; then |
|
|
7471 | rxvt_cv_header_sysioctl=yes |
|
|
7472 | else |
|
|
7473 | echo "$as_me: failed program was:" >&5 |
|
|
7474 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7475 | |
|
|
7476 | rxvt_cv_header_sysioctl=no |
|
|
7477 | fi |
|
|
7478 | |
|
|
7479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7480 | fi |
|
|
7481 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7482 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7483 | |
|
|
7484 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
|
|
7485 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
|
|
7486 | if test "${rxvt_cv_xpointer+set}" = set; then |
|
|
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7488 | else |
|
|
7489 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7490 | /* confdefs.h. */ |
|
|
7491 | _ACEOF |
|
|
7492 | cat confdefs.h >>conftest.$ac_ext |
|
|
7493 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7494 | /* end confdefs.h. */ |
|
|
7495 | #include <X11/Xlib.h> |
|
|
7496 | int |
|
|
7497 | main () |
|
|
7498 | { |
|
|
7499 | XPointer dummy; |
|
|
7500 | ; |
|
|
7501 | return 0; |
|
|
7502 | } |
|
|
7503 | _ACEOF |
|
|
7504 | rm -f conftest.$ac_objext |
|
|
7505 | if { (ac_try="$ac_compile" |
|
|
7506 | case "(($ac_try" in |
|
|
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7508 | *) ac_try_echo=$ac_try;; |
|
|
7509 | esac |
|
|
7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7511 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7512 | ac_status=$? |
|
|
7513 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7514 | rm -f conftest.er1 |
|
|
7515 | cat conftest.err >&5 |
|
|
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7517 | (exit $ac_status); } && { |
|
|
7518 | test -z "$ac_cxx_werror_flag" || |
|
|
7519 | test ! -s conftest.err |
|
|
7520 | } && test -s conftest.$ac_objext; then |
|
|
7521 | rxvt_cv_xpointer=yes |
|
|
7522 | else |
|
|
7523 | echo "$as_me: failed program was:" >&5 |
|
|
7524 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7525 | |
|
|
7526 | rxvt_cv_xpointer=no |
|
|
7527 | fi |
|
|
7528 | |
|
|
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7530 | fi |
|
|
7531 | { echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 |
|
|
7532 | echo "${ECHO_T}$rxvt_cv_xpointer" >&6; } |
|
|
7533 | if test x$rxvt_cv_xpointer = xyes; then |
|
|
7534 | |
|
|
7535 | cat >>confdefs.h <<\_ACEOF |
|
|
7536 | #define HAVE_XPOINTER 1 |
|
|
7537 | _ACEOF |
|
|
7538 | |
|
|
7539 | fi |
|
|
7540 | |
|
|
7541 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
7542 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
|
|
7543 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
|
|
7544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7545 | else |
|
|
7546 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7547 | /* confdefs.h. */ |
|
|
7548 | _ACEOF |
|
|
7549 | cat confdefs.h >>conftest.$ac_ext |
|
|
7550 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7551 | /* end confdefs.h. */ |
|
|
7552 | |
|
|
7553 | #define XLIB_ILLEGAL_ACCESS |
|
|
7554 | #include <X11/Xlib.h> |
|
|
7555 | |
|
|
7556 | int |
|
|
7557 | main () |
|
|
7558 | { |
|
|
7559 | |
|
|
7560 | Display *dpy; |
|
|
7561 | dpy->xdefaults = (char *)0; |
|
|
7562 | |
|
|
7563 | ; |
|
|
7564 | return 0; |
|
|
7565 | } |
|
|
7566 | _ACEOF |
|
|
7567 | rm -f conftest.$ac_objext |
|
|
7568 | if { (ac_try="$ac_compile" |
|
|
7569 | case "(($ac_try" in |
|
|
7570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7571 | *) ac_try_echo=$ac_try;; |
|
|
7572 | esac |
|
|
7573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7574 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7575 | ac_status=$? |
|
|
7576 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7577 | rm -f conftest.er1 |
|
|
7578 | cat conftest.err >&5 |
|
|
7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7580 | (exit $ac_status); } && { |
|
|
7581 | test -z "$ac_cxx_werror_flag" || |
|
|
7582 | test ! -s conftest.err |
|
|
7583 | } && test -s conftest.$ac_objext; then |
|
|
7584 | rxvt_xlib_illegal_access=yes |
|
|
7585 | else |
|
|
7586 | echo "$as_me: failed program was:" >&5 |
|
|
7587 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7588 | |
|
|
7589 | rxvt_xlib_illegal_access=no |
|
|
7590 | |
|
|
7591 | fi |
|
|
7592 | |
|
|
7593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7594 | fi |
|
|
7595 | { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
|
|
7596 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } |
|
|
7597 | if test x$rxvt_xlib_illegal_access = xyes; then |
|
|
7598 | |
|
|
7599 | cat >>confdefs.h <<\_ACEOF |
|
|
7600 | #define XLIB_ILLEGAL_ACCESS 1 |
|
|
7601 | _ACEOF |
|
|
7602 | |
|
|
7603 | fi |
|
|
7604 | |
|
|
7605 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7606 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7607 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7609 | else |
|
|
7610 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7611 | /* confdefs.h. */ |
|
|
7612 | _ACEOF |
|
|
7613 | cat confdefs.h >>conftest.$ac_ext |
|
|
7614 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7615 | /* end confdefs.h. */ |
|
|
7616 | |
|
|
7617 | int |
|
|
7618 | main () |
|
|
7619 | { |
|
|
7620 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7621 | #ifndef __cplusplus |
|
|
7622 | /* Ultrix mips cc rejects this. */ |
|
|
7623 | typedef int charset[2]; |
|
|
7624 | const charset cs; |
|
|
7625 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7626 | char const *const *pcpcc; |
|
|
7627 | char **ppc; |
|
|
7628 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7629 | struct point {int x, y;}; |
|
|
7630 | static struct point const zero = {0,0}; |
|
|
7631 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7632 | It does not let you subtract one const X* pointer from another in |
|
|
7633 | an arm of an if-expression whose if-part is not a constant |
|
|
7634 | expression */ |
|
|
7635 | const char *g = "string"; |
|
|
7636 | pcpcc = &g + (g ? g-g : 0); |
|
|
7637 | /* HPUX 7.0 cc rejects these. */ |
|
|
7638 | ++pcpcc; |
|
|
7639 | ppc = (char**) pcpcc; |
|
|
7640 | pcpcc = (char const *const *) ppc; |
|
|
7641 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7642 | char *t; |
|
|
7643 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7644 | |
|
|
7645 | *t++ = 0; |
|
|
7646 | if (s) return 0; |
|
|
7647 | } |
|
|
7648 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7649 | int x[] = {25, 17}; |
|
|
7650 | const int *foo = &x[0]; |
|
|
7651 | ++foo; |
|
|
7652 | } |
|
|
7653 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7654 | typedef const int *iptr; |
|
|
7655 | iptr p = 0; |
|
|
7656 | ++p; |
|
|
7657 | } |
|
|
7658 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7659 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7660 | struct s { int j; const int *ap[3]; }; |
|
|
7661 | struct s *b; b->j = 5; |
|
|
7662 | } |
|
|
7663 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7664 | const int foo = 10; |
|
|
7665 | if (!foo) return 0; |
|
|
7666 | } |
|
|
7667 | return !cs[0] && !zero.x; |
|
|
7668 | #endif |
|
|
7669 | |
|
|
7670 | ; |
|
|
7671 | return 0; |
|
|
7672 | } |
|
|
7673 | _ACEOF |
|
|
7674 | rm -f conftest.$ac_objext |
|
|
7675 | if { (ac_try="$ac_compile" |
|
|
7676 | case "(($ac_try" in |
|
|
7677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7678 | *) ac_try_echo=$ac_try;; |
|
|
7679 | esac |
|
|
7680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7681 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7682 | ac_status=$? |
|
|
7683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7684 | rm -f conftest.er1 |
|
|
7685 | cat conftest.err >&5 |
|
|
7686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7687 | (exit $ac_status); } && { |
|
|
7688 | test -z "$ac_cxx_werror_flag" || |
|
|
7689 | test ! -s conftest.err |
|
|
7690 | } && test -s conftest.$ac_objext; then |
|
|
7691 | ac_cv_c_const=yes |
|
|
7692 | else |
|
|
7693 | echo "$as_me: failed program was:" >&5 |
|
|
7694 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7695 | |
|
|
7696 | ac_cv_c_const=no |
|
|
7697 | fi |
|
|
7698 | |
|
|
7699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7700 | fi |
|
|
7701 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7702 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7703 | if test $ac_cv_c_const = no; then |
|
|
7704 | |
|
|
7705 | cat >>confdefs.h <<\_ACEOF |
|
|
7706 | #define const |
|
|
7707 | _ACEOF |
|
|
7708 | |
|
|
7709 | fi |
|
|
7710 | |
|
|
7711 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7712 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7713 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7715 | else |
|
|
7716 | ac_cv_c_inline=no |
|
|
7717 | for ac_kw in inline __inline__ __inline; do |
|
|
7718 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7719 | /* confdefs.h. */ |
|
|
7720 | _ACEOF |
|
|
7721 | cat confdefs.h >>conftest.$ac_ext |
|
|
7722 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7723 | /* end confdefs.h. */ |
|
|
7724 | #ifndef __cplusplus |
|
|
7725 | typedef int foo_t; |
|
|
7726 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7727 | $ac_kw foo_t foo () {return 0; } |
|
|
7728 | #endif |
|
|
7729 | |
|
|
7730 | _ACEOF |
|
|
7731 | rm -f conftest.$ac_objext |
|
|
7732 | if { (ac_try="$ac_compile" |
|
|
7733 | case "(($ac_try" in |
|
|
7734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7735 | *) ac_try_echo=$ac_try;; |
|
|
7736 | esac |
|
|
7737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7738 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7739 | ac_status=$? |
|
|
7740 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7741 | rm -f conftest.er1 |
|
|
7742 | cat conftest.err >&5 |
|
|
7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7744 | (exit $ac_status); } && { |
|
|
7745 | test -z "$ac_cxx_werror_flag" || |
|
|
7746 | test ! -s conftest.err |
|
|
7747 | } && test -s conftest.$ac_objext; then |
|
|
7748 | ac_cv_c_inline=$ac_kw |
|
|
7749 | else |
|
|
7750 | echo "$as_me: failed program was:" >&5 |
|
|
7751 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7752 | |
|
|
7753 | |
|
|
7754 | fi |
|
|
7755 | |
|
|
7756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7757 | test "$ac_cv_c_inline" != no && break |
|
|
7758 | done |
|
|
7759 | |
|
|
7760 | fi |
|
|
7761 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7762 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7763 | |
|
|
7764 | |
|
|
7765 | case $ac_cv_c_inline in |
|
|
7766 | inline | yes) ;; |
|
|
7767 | *) |
|
|
7768 | case $ac_cv_c_inline in |
|
|
7769 | no) ac_val=;; |
|
|
7770 | *) ac_val=$ac_cv_c_inline;; |
|
|
7771 | esac |
|
|
7772 | cat >>confdefs.h <<_ACEOF |
|
|
7773 | #ifndef __cplusplus |
|
|
7774 | #define inline $ac_val |
|
|
7775 | #endif |
|
|
7776 | _ACEOF |
|
|
7777 | ;; |
|
|
7778 | esac |
|
|
7779 | |
|
|
7780 | |
|
|
7781 | |
|
|
7782 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
|
|
7783 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
|
|
7784 | if test "${ac_cv_type_mode_t+set}" = set; then |
|
|
7785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7786 | else |
|
|
7787 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7788 | /* confdefs.h. */ |
|
|
7789 | _ACEOF |
|
|
7790 | cat confdefs.h >>conftest.$ac_ext |
|
|
7791 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7792 | /* end confdefs.h. */ |
|
|
7793 | $ac_includes_default |
|
|
7794 | typedef mode_t ac__type_new_; |
|
|
7795 | int |
|
|
7796 | main () |
|
|
7797 | { |
|
|
7798 | if ((ac__type_new_ *) 0) |
|
|
7799 | return 0; |
|
|
7800 | if (sizeof (ac__type_new_)) |
|
|
7801 | return 0; |
|
|
7802 | ; |
|
|
7803 | return 0; |
|
|
7804 | } |
|
|
7805 | _ACEOF |
|
|
7806 | rm -f conftest.$ac_objext |
|
|
7807 | if { (ac_try="$ac_compile" |
|
|
7808 | case "(($ac_try" in |
|
|
7809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7810 | *) ac_try_echo=$ac_try;; |
|
|
7811 | esac |
|
|
7812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7813 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7814 | ac_status=$? |
|
|
7815 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7816 | rm -f conftest.er1 |
|
|
7817 | cat conftest.err >&5 |
|
|
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7819 | (exit $ac_status); } && { |
|
|
7820 | test -z "$ac_cxx_werror_flag" || |
|
|
7821 | test ! -s conftest.err |
|
|
7822 | } && test -s conftest.$ac_objext; then |
|
|
7823 | ac_cv_type_mode_t=yes |
|
|
7824 | else |
|
|
7825 | echo "$as_me: failed program was:" >&5 |
|
|
7826 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7827 | |
|
|
7828 | ac_cv_type_mode_t=no |
|
|
7829 | fi |
|
|
7830 | |
|
|
7831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7832 | fi |
|
|
7833 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
|
|
7834 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } |
|
|
7835 | if test $ac_cv_type_mode_t = yes; then |
|
|
7836 | : |
|
|
7837 | else |
|
|
7838 | |
|
|
7839 | cat >>confdefs.h <<_ACEOF |
|
|
7840 | #define mode_t int |
|
|
7841 | _ACEOF |
|
|
7842 | |
|
|
7843 | fi |
|
|
7844 | |
|
|
7845 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
|
|
7846 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
|
|
7847 | if test "${ac_cv_type_pid_t+set}" = set; then |
|
|
7848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7849 | else |
|
|
7850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7851 | /* confdefs.h. */ |
|
|
7852 | _ACEOF |
|
|
7853 | cat confdefs.h >>conftest.$ac_ext |
|
|
7854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7855 | /* end confdefs.h. */ |
|
|
7856 | $ac_includes_default |
|
|
7857 | typedef pid_t ac__type_new_; |
|
|
7858 | int |
|
|
7859 | main () |
|
|
7860 | { |
|
|
7861 | if ((ac__type_new_ *) 0) |
|
|
7862 | return 0; |
|
|
7863 | if (sizeof (ac__type_new_)) |
|
|
7864 | return 0; |
|
|
7865 | ; |
|
|
7866 | return 0; |
|
|
7867 | } |
|
|
7868 | _ACEOF |
|
|
7869 | rm -f conftest.$ac_objext |
|
|
7870 | if { (ac_try="$ac_compile" |
|
|
7871 | case "(($ac_try" in |
|
|
7872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7873 | *) ac_try_echo=$ac_try;; |
|
|
7874 | esac |
|
|
7875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7876 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7877 | ac_status=$? |
|
|
7878 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7879 | rm -f conftest.er1 |
|
|
7880 | cat conftest.err >&5 |
|
|
7881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7882 | (exit $ac_status); } && { |
|
|
7883 | test -z "$ac_cxx_werror_flag" || |
|
|
7884 | test ! -s conftest.err |
|
|
7885 | } && test -s conftest.$ac_objext; then |
|
|
7886 | ac_cv_type_pid_t=yes |
|
|
7887 | else |
|
|
7888 | echo "$as_me: failed program was:" >&5 |
|
|
7889 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7890 | |
|
|
7891 | ac_cv_type_pid_t=no |
|
|
7892 | fi |
|
|
7893 | |
|
|
7894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7895 | fi |
|
|
7896 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
|
|
7897 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
|
|
7898 | if test $ac_cv_type_pid_t = yes; then |
|
|
7899 | : |
|
|
7900 | else |
|
|
7901 | |
|
|
7902 | cat >>confdefs.h <<_ACEOF |
|
|
7903 | #define pid_t int |
|
|
7904 | _ACEOF |
|
|
7905 | |
|
|
7906 | fi |
|
|
7907 | |
|
|
7908 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
|
|
7909 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
|
|
7910 | if test "${ac_cv_type_uid_t+set}" = set; then |
|
|
7911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7912 | else |
|
|
7913 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7914 | /* confdefs.h. */ |
|
|
7915 | _ACEOF |
|
|
7916 | cat confdefs.h >>conftest.$ac_ext |
|
|
7917 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7918 | /* end confdefs.h. */ |
|
|
7919 | #include <sys/types.h> |
|
|
7920 | |
|
|
7921 | _ACEOF |
|
|
7922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7923 | $EGREP "uid_t" >/dev/null 2>&1; then |
|
|
7924 | ac_cv_type_uid_t=yes |
|
|
7925 | else |
|
|
7926 | ac_cv_type_uid_t=no |
|
|
7927 | fi |
|
|
7928 | rm -f conftest* |
|
|
7929 | |
|
|
7930 | fi |
|
|
7931 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
|
|
7932 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
|
|
7933 | if test $ac_cv_type_uid_t = no; then |
|
|
7934 | |
|
|
7935 | cat >>confdefs.h <<\_ACEOF |
|
|
7936 | #define uid_t int |
|
|
7937 | _ACEOF |
|
|
7938 | |
|
|
7939 | |
|
|
7940 | cat >>confdefs.h <<\_ACEOF |
|
|
7941 | #define gid_t int |
|
|
7942 | _ACEOF |
|
|
7943 | |
|
|
7944 | fi |
|
|
7945 | |
|
|
7946 | |
|
|
7947 | { echo "$as_me:$LINENO: checking for short" >&5 |
|
|
7948 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
|
|
7949 | if test "${ac_cv_type_short+set}" = set; then |
|
|
7950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7951 | else |
|
|
7952 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7953 | /* confdefs.h. */ |
|
|
7954 | _ACEOF |
|
|
7955 | cat confdefs.h >>conftest.$ac_ext |
|
|
7956 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7957 | /* end confdefs.h. */ |
|
|
7958 | $ac_includes_default |
|
|
7959 | typedef short ac__type_new_; |
|
|
7960 | int |
|
|
7961 | main () |
|
|
7962 | { |
|
|
7963 | if ((ac__type_new_ *) 0) |
|
|
7964 | return 0; |
|
|
7965 | if (sizeof (ac__type_new_)) |
|
|
7966 | return 0; |
|
|
7967 | ; |
|
|
7968 | return 0; |
|
|
7969 | } |
|
|
7970 | _ACEOF |
|
|
7971 | rm -f conftest.$ac_objext |
|
|
7972 | if { (ac_try="$ac_compile" |
|
|
7973 | case "(($ac_try" in |
|
|
7974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7975 | *) ac_try_echo=$ac_try;; |
|
|
7976 | esac |
|
|
7977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7978 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7979 | ac_status=$? |
|
|
7980 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7981 | rm -f conftest.er1 |
|
|
7982 | cat conftest.err >&5 |
|
|
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7984 | (exit $ac_status); } && { |
|
|
7985 | test -z "$ac_cxx_werror_flag" || |
|
|
7986 | test ! -s conftest.err |
|
|
7987 | } && test -s conftest.$ac_objext; then |
|
|
7988 | ac_cv_type_short=yes |
|
|
7989 | else |
|
|
7990 | echo "$as_me: failed program was:" >&5 |
|
|
7991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7992 | |
|
|
7993 | ac_cv_type_short=no |
|
|
7994 | fi |
|
|
7995 | |
|
|
7996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7997 | fi |
|
|
7998 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7999 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8000 | |
|
|
8001 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8004 | # This bug is HP SR number 8606223364. |
|
|
8005 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8006 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8007 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8009 | else |
|
|
8010 | if test "$cross_compiling" = yes; then |
|
|
8011 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8013 | /* confdefs.h. */ |
|
|
8014 | _ACEOF |
|
|
8015 | cat confdefs.h >>conftest.$ac_ext |
|
|
8016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8017 | /* end confdefs.h. */ |
|
|
8018 | $ac_includes_default |
|
|
8019 | typedef short ac__type_sizeof_; |
|
|
8020 | int |
|
|
8021 | main () |
|
|
8022 | { |
|
|
8023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8024 | test_array [0] = 0 |
|
|
8025 | |
|
|
8026 | ; |
|
|
8027 | return 0; |
|
|
8028 | } |
|
|
8029 | _ACEOF |
|
|
8030 | rm -f conftest.$ac_objext |
|
|
8031 | if { (ac_try="$ac_compile" |
|
|
8032 | case "(($ac_try" in |
|
|
8033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8034 | *) ac_try_echo=$ac_try;; |
|
|
8035 | esac |
|
|
8036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8037 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8038 | ac_status=$? |
|
|
8039 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8040 | rm -f conftest.er1 |
|
|
8041 | cat conftest.err >&5 |
|
|
8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8043 | (exit $ac_status); } && { |
|
|
8044 | test -z "$ac_cxx_werror_flag" || |
|
|
8045 | test ! -s conftest.err |
|
|
8046 | } && test -s conftest.$ac_objext; then |
|
|
8047 | ac_lo=0 ac_mid=0 |
|
|
8048 | while :; do |
|
|
8049 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8050 | /* confdefs.h. */ |
|
|
8051 | _ACEOF |
|
|
8052 | cat confdefs.h >>conftest.$ac_ext |
|
|
8053 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8054 | /* end confdefs.h. */ |
|
|
8055 | $ac_includes_default |
|
|
8056 | typedef short ac__type_sizeof_; |
|
|
8057 | int |
|
|
8058 | main () |
|
|
8059 | { |
|
|
8060 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8061 | test_array [0] = 0 |
|
|
8062 | |
|
|
8063 | ; |
|
|
8064 | return 0; |
|
|
8065 | } |
|
|
8066 | _ACEOF |
|
|
8067 | rm -f conftest.$ac_objext |
|
|
8068 | if { (ac_try="$ac_compile" |
|
|
8069 | case "(($ac_try" in |
|
|
8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8071 | *) ac_try_echo=$ac_try;; |
|
|
8072 | esac |
|
|
8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8074 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8075 | ac_status=$? |
|
|
8076 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8077 | rm -f conftest.er1 |
|
|
8078 | cat conftest.err >&5 |
|
|
8079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8080 | (exit $ac_status); } && { |
|
|
8081 | test -z "$ac_cxx_werror_flag" || |
|
|
8082 | test ! -s conftest.err |
|
|
8083 | } && test -s conftest.$ac_objext; then |
|
|
8084 | ac_hi=$ac_mid; break |
|
|
8085 | else |
|
|
8086 | echo "$as_me: failed program was:" >&5 |
|
|
8087 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8088 | |
|
|
8089 | ac_lo=`expr $ac_mid + 1` |
|
|
8090 | if test $ac_lo -le $ac_mid; then |
|
|
8091 | ac_lo= ac_hi= |
|
|
8092 | break |
|
|
8093 | fi |
|
|
8094 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8095 | fi |
|
|
8096 | |
|
|
8097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8098 | done |
|
|
8099 | else |
|
|
8100 | echo "$as_me: failed program was:" >&5 |
|
|
8101 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8102 | |
|
|
8103 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8104 | /* confdefs.h. */ |
|
|
8105 | _ACEOF |
|
|
8106 | cat confdefs.h >>conftest.$ac_ext |
|
|
8107 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8108 | /* end confdefs.h. */ |
|
|
8109 | $ac_includes_default |
|
|
8110 | typedef short ac__type_sizeof_; |
|
|
8111 | int |
|
|
8112 | main () |
|
|
8113 | { |
|
|
8114 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8115 | test_array [0] = 0 |
|
|
8116 | |
|
|
8117 | ; |
|
|
8118 | return 0; |
|
|
8119 | } |
|
|
8120 | _ACEOF |
|
|
8121 | rm -f conftest.$ac_objext |
|
|
8122 | if { (ac_try="$ac_compile" |
|
|
8123 | case "(($ac_try" in |
|
|
8124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8125 | *) ac_try_echo=$ac_try;; |
|
|
8126 | esac |
|
|
8127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8128 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8129 | ac_status=$? |
|
|
8130 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8131 | rm -f conftest.er1 |
|
|
8132 | cat conftest.err >&5 |
|
|
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8134 | (exit $ac_status); } && { |
|
|
8135 | test -z "$ac_cxx_werror_flag" || |
|
|
8136 | test ! -s conftest.err |
|
|
8137 | } && test -s conftest.$ac_objext; then |
|
|
8138 | ac_hi=-1 ac_mid=-1 |
|
|
8139 | while :; do |
|
|
8140 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8141 | /* confdefs.h. */ |
|
|
8142 | _ACEOF |
|
|
8143 | cat confdefs.h >>conftest.$ac_ext |
|
|
8144 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8145 | /* end confdefs.h. */ |
|
|
8146 | $ac_includes_default |
|
|
8147 | typedef short ac__type_sizeof_; |
|
|
8148 | int |
|
|
8149 | main () |
|
|
8150 | { |
|
|
8151 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8152 | test_array [0] = 0 |
|
|
8153 | |
|
|
8154 | ; |
|
|
8155 | return 0; |
|
|
8156 | } |
|
|
8157 | _ACEOF |
|
|
8158 | rm -f conftest.$ac_objext |
|
|
8159 | if { (ac_try="$ac_compile" |
|
|
8160 | case "(($ac_try" in |
|
|
8161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8162 | *) ac_try_echo=$ac_try;; |
|
|
8163 | esac |
|
|
8164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8165 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8166 | ac_status=$? |
|
|
8167 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8168 | rm -f conftest.er1 |
|
|
8169 | cat conftest.err >&5 |
|
|
8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8171 | (exit $ac_status); } && { |
|
|
8172 | test -z "$ac_cxx_werror_flag" || |
|
|
8173 | test ! -s conftest.err |
|
|
8174 | } && test -s conftest.$ac_objext; then |
|
|
8175 | ac_lo=$ac_mid; break |
|
|
8176 | else |
|
|
8177 | echo "$as_me: failed program was:" >&5 |
|
|
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8179 | |
|
|
8180 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8181 | if test $ac_mid -le $ac_hi; then |
|
|
8182 | ac_lo= ac_hi= |
|
|
8183 | break |
|
|
8184 | fi |
|
|
8185 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8186 | fi |
|
|
8187 | |
|
|
8188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8189 | done |
|
|
8190 | else |
|
|
8191 | echo "$as_me: failed program was:" >&5 |
|
|
8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8193 | |
|
|
8194 | ac_lo= ac_hi= |
|
|
8195 | fi |
|
|
8196 | |
|
|
8197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8198 | fi |
|
|
8199 | |
|
|
8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8201 | # Binary search between lo and hi bounds. |
|
|
8202 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8204 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8205 | /* confdefs.h. */ |
|
|
8206 | _ACEOF |
|
|
8207 | cat confdefs.h >>conftest.$ac_ext |
|
|
8208 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8209 | /* end confdefs.h. */ |
|
|
8210 | $ac_includes_default |
|
|
8211 | typedef short ac__type_sizeof_; |
|
|
8212 | int |
|
|
8213 | main () |
|
|
8214 | { |
|
|
8215 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8216 | test_array [0] = 0 |
|
|
8217 | |
|
|
8218 | ; |
|
|
8219 | return 0; |
|
|
8220 | } |
|
|
8221 | _ACEOF |
|
|
8222 | rm -f conftest.$ac_objext |
|
|
8223 | if { (ac_try="$ac_compile" |
|
|
8224 | case "(($ac_try" in |
|
|
8225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8226 | *) ac_try_echo=$ac_try;; |
|
|
8227 | esac |
|
|
8228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8229 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8230 | ac_status=$? |
|
|
8231 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8232 | rm -f conftest.er1 |
|
|
8233 | cat conftest.err >&5 |
|
|
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8235 | (exit $ac_status); } && { |
|
|
8236 | test -z "$ac_cxx_werror_flag" || |
|
|
8237 | test ! -s conftest.err |
|
|
8238 | } && test -s conftest.$ac_objext; then |
|
|
8239 | ac_hi=$ac_mid |
|
|
8240 | else |
|
|
8241 | echo "$as_me: failed program was:" >&5 |
|
|
8242 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8243 | |
|
|
8244 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8245 | fi |
|
|
8246 | |
|
|
8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8248 | done |
|
|
8249 | case $ac_lo in |
|
|
8250 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8251 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8252 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8253 | See \`config.log' for more details." >&5 |
|
|
8254 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8255 | See \`config.log' for more details." >&2;} |
|
|
8256 | { (exit 77); exit 77; }; } |
|
|
8257 | else |
|
|
8258 | ac_cv_sizeof_short=0 |
|
|
8259 | fi ;; |
|
|
8260 | esac |
|
|
8261 | else |
|
|
8262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8263 | /* confdefs.h. */ |
|
|
8264 | _ACEOF |
|
|
8265 | cat confdefs.h >>conftest.$ac_ext |
|
|
8266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8267 | /* end confdefs.h. */ |
|
|
8268 | $ac_includes_default |
|
|
8269 | typedef short ac__type_sizeof_; |
|
|
8270 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8271 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8272 | #include <stdio.h> |
|
|
8273 | #include <stdlib.h> |
|
|
8274 | int |
|
|
8275 | main () |
|
|
8276 | { |
|
|
8277 | |
|
|
8278 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8279 | if (! f) |
|
|
8280 | return 1; |
|
|
8281 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8282 | { |
|
|
8283 | long int i = longval (); |
|
|
8284 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8285 | return 1; |
|
|
8286 | fprintf (f, "%ld\n", i); |
|
|
8287 | } |
|
|
8288 | else |
|
|
8289 | { |
|
|
8290 | unsigned long int i = ulongval (); |
|
|
8291 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8292 | return 1; |
|
|
8293 | fprintf (f, "%lu\n", i); |
|
|
8294 | } |
|
|
8295 | return ferror (f) || fclose (f) != 0; |
|
|
8296 | |
|
|
8297 | ; |
|
|
8298 | return 0; |
|
|
8299 | } |
|
|
8300 | _ACEOF |
|
|
8301 | rm -f conftest$ac_exeext |
|
|
8302 | if { (ac_try="$ac_link" |
|
|
8303 | case "(($ac_try" in |
|
|
8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8305 | *) ac_try_echo=$ac_try;; |
|
|
8306 | esac |
|
|
8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8308 | (eval "$ac_link") 2>&5 |
|
|
8309 | ac_status=$? |
|
|
8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8312 | { (case "(($ac_try" in |
|
|
8313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8314 | *) ac_try_echo=$ac_try;; |
|
|
8315 | esac |
|
|
8316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8317 | (eval "$ac_try") 2>&5 |
|
|
8318 | ac_status=$? |
|
|
8319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8320 | (exit $ac_status); }; }; then |
|
|
8321 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8322 | else |
|
|
8323 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8324 | echo "$as_me: failed program was:" >&5 |
|
|
8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8326 | |
|
|
8327 | ( exit $ac_status ) |
|
|
8328 | if test "$ac_cv_type_short" = yes; then |
|
|
8329 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8330 | See \`config.log' for more details." >&5 |
|
|
8331 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8332 | See \`config.log' for more details." >&2;} |
|
|
8333 | { (exit 77); exit 77; }; } |
|
|
8334 | else |
|
|
8335 | ac_cv_sizeof_short=0 |
|
|
8336 | fi |
|
|
8337 | fi |
|
|
8338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8339 | fi |
|
|
8340 | rm -f conftest.val |
|
|
8341 | fi |
|
|
8342 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
|
|
8343 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
|
|
8344 | |
|
|
8345 | |
|
|
8346 | |
|
|
8347 | cat >>confdefs.h <<_ACEOF |
|
|
8348 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
|
|
8349 | _ACEOF |
|
|
8350 | |
|
|
8351 | |
|
|
8352 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8353 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8354 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8356 | else |
|
|
8357 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8358 | /* confdefs.h. */ |
|
|
8359 | _ACEOF |
|
|
8360 | cat confdefs.h >>conftest.$ac_ext |
|
|
8361 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8362 | /* end confdefs.h. */ |
|
|
8363 | $ac_includes_default |
|
|
8364 | typedef int ac__type_new_; |
|
|
8365 | int |
|
|
8366 | main () |
|
|
8367 | { |
|
|
8368 | if ((ac__type_new_ *) 0) |
|
|
8369 | return 0; |
|
|
8370 | if (sizeof (ac__type_new_)) |
|
|
8371 | return 0; |
|
|
8372 | ; |
|
|
8373 | return 0; |
|
|
8374 | } |
|
|
8375 | _ACEOF |
|
|
8376 | rm -f conftest.$ac_objext |
|
|
8377 | if { (ac_try="$ac_compile" |
|
|
8378 | case "(($ac_try" in |
|
|
8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8380 | *) ac_try_echo=$ac_try;; |
|
|
8381 | esac |
|
|
8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8383 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8384 | ac_status=$? |
|
|
8385 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8386 | rm -f conftest.er1 |
|
|
8387 | cat conftest.err >&5 |
|
|
8388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8389 | (exit $ac_status); } && { |
|
|
8390 | test -z "$ac_cxx_werror_flag" || |
|
|
8391 | test ! -s conftest.err |
|
|
8392 | } && test -s conftest.$ac_objext; then |
|
|
8393 | ac_cv_type_int=yes |
|
|
8394 | else |
|
|
8395 | echo "$as_me: failed program was:" >&5 |
|
|
8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8397 | |
|
|
8398 | ac_cv_type_int=no |
|
|
8399 | fi |
|
|
8400 | |
|
|
8401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8402 | fi |
|
|
8403 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8404 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8405 | |
|
|
8406 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8409 | # This bug is HP SR number 8606223364. |
|
|
8410 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8411 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | if test "$cross_compiling" = yes; then |
|
|
8416 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8417 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8418 | /* confdefs.h. */ |
|
|
8419 | _ACEOF |
|
|
8420 | cat confdefs.h >>conftest.$ac_ext |
|
|
8421 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8422 | /* end confdefs.h. */ |
|
|
8423 | $ac_includes_default |
|
|
8424 | typedef int ac__type_sizeof_; |
|
|
8425 | int |
|
|
8426 | main () |
|
|
8427 | { |
|
|
8428 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8429 | test_array [0] = 0 |
|
|
8430 | |
|
|
8431 | ; |
|
|
8432 | return 0; |
|
|
8433 | } |
|
|
8434 | _ACEOF |
|
|
8435 | rm -f conftest.$ac_objext |
|
|
8436 | if { (ac_try="$ac_compile" |
|
|
8437 | case "(($ac_try" in |
|
|
8438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8439 | *) ac_try_echo=$ac_try;; |
|
|
8440 | esac |
|
|
8441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8442 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8443 | ac_status=$? |
|
|
8444 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8445 | rm -f conftest.er1 |
|
|
8446 | cat conftest.err >&5 |
|
|
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8448 | (exit $ac_status); } && { |
|
|
8449 | test -z "$ac_cxx_werror_flag" || |
|
|
8450 | test ! -s conftest.err |
|
|
8451 | } && test -s conftest.$ac_objext; then |
|
|
8452 | ac_lo=0 ac_mid=0 |
|
|
8453 | while :; do |
|
|
8454 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8455 | /* confdefs.h. */ |
|
|
8456 | _ACEOF |
|
|
8457 | cat confdefs.h >>conftest.$ac_ext |
|
|
8458 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8459 | /* end confdefs.h. */ |
|
|
8460 | $ac_includes_default |
|
|
8461 | typedef int ac__type_sizeof_; |
|
|
8462 | int |
|
|
8463 | main () |
|
|
8464 | { |
|
|
8465 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8466 | test_array [0] = 0 |
|
|
8467 | |
|
|
8468 | ; |
|
|
8469 | return 0; |
|
|
8470 | } |
|
|
8471 | _ACEOF |
|
|
8472 | rm -f conftest.$ac_objext |
|
|
8473 | if { (ac_try="$ac_compile" |
|
|
8474 | case "(($ac_try" in |
|
|
8475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8476 | *) ac_try_echo=$ac_try;; |
|
|
8477 | esac |
|
|
8478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8479 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8480 | ac_status=$? |
|
|
8481 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8482 | rm -f conftest.er1 |
|
|
8483 | cat conftest.err >&5 |
|
|
8484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8485 | (exit $ac_status); } && { |
|
|
8486 | test -z "$ac_cxx_werror_flag" || |
|
|
8487 | test ! -s conftest.err |
|
|
8488 | } && test -s conftest.$ac_objext; then |
|
|
8489 | ac_hi=$ac_mid; break |
|
|
8490 | else |
|
|
8491 | echo "$as_me: failed program was:" >&5 |
|
|
8492 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8493 | |
|
|
8494 | ac_lo=`expr $ac_mid + 1` |
|
|
8495 | if test $ac_lo -le $ac_mid; then |
|
|
8496 | ac_lo= ac_hi= |
|
|
8497 | break |
|
|
8498 | fi |
|
|
8499 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8500 | fi |
|
|
8501 | |
|
|
8502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8503 | done |
|
|
8504 | else |
|
|
8505 | echo "$as_me: failed program was:" >&5 |
|
|
8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8507 | |
|
|
8508 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8509 | /* confdefs.h. */ |
|
|
8510 | _ACEOF |
|
|
8511 | cat confdefs.h >>conftest.$ac_ext |
|
|
8512 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8513 | /* end confdefs.h. */ |
|
|
8514 | $ac_includes_default |
|
|
8515 | typedef int ac__type_sizeof_; |
|
|
8516 | int |
|
|
8517 | main () |
|
|
8518 | { |
|
|
8519 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8520 | test_array [0] = 0 |
|
|
8521 | |
|
|
8522 | ; |
|
|
8523 | return 0; |
|
|
8524 | } |
|
|
8525 | _ACEOF |
|
|
8526 | rm -f conftest.$ac_objext |
|
|
8527 | if { (ac_try="$ac_compile" |
|
|
8528 | case "(($ac_try" in |
|
|
8529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8530 | *) ac_try_echo=$ac_try;; |
|
|
8531 | esac |
|
|
8532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8533 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8534 | ac_status=$? |
|
|
8535 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8536 | rm -f conftest.er1 |
|
|
8537 | cat conftest.err >&5 |
|
|
8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8539 | (exit $ac_status); } && { |
|
|
8540 | test -z "$ac_cxx_werror_flag" || |
|
|
8541 | test ! -s conftest.err |
|
|
8542 | } && test -s conftest.$ac_objext; then |
|
|
8543 | ac_hi=-1 ac_mid=-1 |
|
|
8544 | while :; do |
|
|
8545 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8546 | /* confdefs.h. */ |
|
|
8547 | _ACEOF |
|
|
8548 | cat confdefs.h >>conftest.$ac_ext |
|
|
8549 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8550 | /* end confdefs.h. */ |
|
|
8551 | $ac_includes_default |
|
|
8552 | typedef int ac__type_sizeof_; |
|
|
8553 | int |
|
|
8554 | main () |
|
|
8555 | { |
|
|
8556 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8557 | test_array [0] = 0 |
|
|
8558 | |
|
|
8559 | ; |
|
|
8560 | return 0; |
|
|
8561 | } |
|
|
8562 | _ACEOF |
|
|
8563 | rm -f conftest.$ac_objext |
|
|
8564 | if { (ac_try="$ac_compile" |
|
|
8565 | case "(($ac_try" in |
|
|
8566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8567 | *) ac_try_echo=$ac_try;; |
|
|
8568 | esac |
|
|
8569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8570 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8571 | ac_status=$? |
|
|
8572 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8573 | rm -f conftest.er1 |
|
|
8574 | cat conftest.err >&5 |
|
|
8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8576 | (exit $ac_status); } && { |
|
|
8577 | test -z "$ac_cxx_werror_flag" || |
|
|
8578 | test ! -s conftest.err |
|
|
8579 | } && test -s conftest.$ac_objext; then |
|
|
8580 | ac_lo=$ac_mid; break |
|
|
8581 | else |
|
|
8582 | echo "$as_me: failed program was:" >&5 |
|
|
8583 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8584 | |
|
|
8585 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8586 | if test $ac_mid -le $ac_hi; then |
|
|
8587 | ac_lo= ac_hi= |
|
|
8588 | break |
|
|
8589 | fi |
|
|
8590 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8591 | fi |
|
|
8592 | |
|
|
8593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8594 | done |
|
|
8595 | else |
|
|
8596 | echo "$as_me: failed program was:" >&5 |
|
|
8597 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8598 | |
|
|
8599 | ac_lo= ac_hi= |
|
|
8600 | fi |
|
|
8601 | |
|
|
8602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8603 | fi |
|
|
8604 | |
|
|
8605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8606 | # Binary search between lo and hi bounds. |
|
|
8607 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8608 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8609 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8610 | /* confdefs.h. */ |
|
|
8611 | _ACEOF |
|
|
8612 | cat confdefs.h >>conftest.$ac_ext |
|
|
8613 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8614 | /* end confdefs.h. */ |
|
|
8615 | $ac_includes_default |
|
|
8616 | typedef int ac__type_sizeof_; |
|
|
8617 | int |
|
|
8618 | main () |
|
|
8619 | { |
|
|
8620 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8621 | test_array [0] = 0 |
|
|
8622 | |
|
|
8623 | ; |
|
|
8624 | return 0; |
|
|
8625 | } |
|
|
8626 | _ACEOF |
|
|
8627 | rm -f conftest.$ac_objext |
|
|
8628 | if { (ac_try="$ac_compile" |
|
|
8629 | case "(($ac_try" in |
|
|
8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8631 | *) ac_try_echo=$ac_try;; |
|
|
8632 | esac |
|
|
8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8634 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8635 | ac_status=$? |
|
|
8636 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8637 | rm -f conftest.er1 |
|
|
8638 | cat conftest.err >&5 |
|
|
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8640 | (exit $ac_status); } && { |
|
|
8641 | test -z "$ac_cxx_werror_flag" || |
|
|
8642 | test ! -s conftest.err |
|
|
8643 | } && test -s conftest.$ac_objext; then |
|
|
8644 | ac_hi=$ac_mid |
|
|
8645 | else |
|
|
8646 | echo "$as_me: failed program was:" >&5 |
|
|
8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8648 | |
|
|
8649 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8650 | fi |
|
|
8651 | |
|
|
8652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8653 | done |
|
|
8654 | case $ac_lo in |
|
|
8655 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8656 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8657 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8658 | See \`config.log' for more details." >&5 |
|
|
8659 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8660 | See \`config.log' for more details." >&2;} |
|
|
8661 | { (exit 77); exit 77; }; } |
|
|
8662 | else |
|
|
8663 | ac_cv_sizeof_int=0 |
|
|
8664 | fi ;; |
|
|
8665 | esac |
|
|
8666 | else |
|
|
8667 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8668 | /* confdefs.h. */ |
|
|
8669 | _ACEOF |
|
|
8670 | cat confdefs.h >>conftest.$ac_ext |
|
|
8671 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8672 | /* end confdefs.h. */ |
|
|
8673 | $ac_includes_default |
|
|
8674 | typedef int ac__type_sizeof_; |
|
|
8675 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8676 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8677 | #include <stdio.h> |
|
|
8678 | #include <stdlib.h> |
|
|
8679 | int |
|
|
8680 | main () |
|
|
8681 | { |
|
|
8682 | |
|
|
8683 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8684 | if (! f) |
|
|
8685 | return 1; |
|
|
8686 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8687 | { |
|
|
8688 | long int i = longval (); |
|
|
8689 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8690 | return 1; |
|
|
8691 | fprintf (f, "%ld\n", i); |
|
|
8692 | } |
|
|
8693 | else |
|
|
8694 | { |
|
|
8695 | unsigned long int i = ulongval (); |
|
|
8696 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8697 | return 1; |
|
|
8698 | fprintf (f, "%lu\n", i); |
|
|
8699 | } |
|
|
8700 | return ferror (f) || fclose (f) != 0; |
|
|
8701 | |
|
|
8702 | ; |
|
|
8703 | return 0; |
|
|
8704 | } |
|
|
8705 | _ACEOF |
|
|
8706 | rm -f conftest$ac_exeext |
|
|
8707 | if { (ac_try="$ac_link" |
|
|
8708 | case "(($ac_try" in |
|
|
8709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8710 | *) ac_try_echo=$ac_try;; |
|
|
8711 | esac |
|
|
8712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8713 | (eval "$ac_link") 2>&5 |
|
|
8714 | ac_status=$? |
|
|
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8716 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8717 | { (case "(($ac_try" in |
|
|
8718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8719 | *) ac_try_echo=$ac_try;; |
|
|
8720 | esac |
|
|
8721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8722 | (eval "$ac_try") 2>&5 |
|
|
8723 | ac_status=$? |
|
|
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8725 | (exit $ac_status); }; }; then |
|
|
8726 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8727 | else |
|
|
8728 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8729 | echo "$as_me: failed program was:" >&5 |
|
|
8730 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8731 | |
|
|
8732 | ( exit $ac_status ) |
|
|
8733 | if test "$ac_cv_type_int" = yes; then |
|
|
8734 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8735 | See \`config.log' for more details." >&5 |
|
|
8736 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8737 | See \`config.log' for more details." >&2;} |
|
|
8738 | { (exit 77); exit 77; }; } |
|
|
8739 | else |
|
|
8740 | ac_cv_sizeof_int=0 |
|
|
8741 | fi |
|
|
8742 | fi |
|
|
8743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8744 | fi |
|
|
8745 | rm -f conftest.val |
|
|
8746 | fi |
|
|
8747 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8748 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8749 | |
|
|
8750 | |
|
|
8751 | |
|
|
8752 | cat >>confdefs.h <<_ACEOF |
|
|
8753 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8754 | _ACEOF |
|
|
8755 | |
|
|
8756 | |
|
|
8757 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8758 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8759 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8761 | else |
|
|
8762 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8763 | /* confdefs.h. */ |
|
|
8764 | _ACEOF |
|
|
8765 | cat confdefs.h >>conftest.$ac_ext |
|
|
8766 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8767 | /* end confdefs.h. */ |
|
|
8768 | $ac_includes_default |
|
|
8769 | typedef long long ac__type_new_; |
|
|
8770 | int |
|
|
8771 | main () |
|
|
8772 | { |
|
|
8773 | if ((ac__type_new_ *) 0) |
|
|
8774 | return 0; |
|
|
8775 | if (sizeof (ac__type_new_)) |
|
|
8776 | return 0; |
|
|
8777 | ; |
|
|
8778 | return 0; |
|
|
8779 | } |
|
|
8780 | _ACEOF |
|
|
8781 | rm -f conftest.$ac_objext |
|
|
8782 | if { (ac_try="$ac_compile" |
|
|
8783 | case "(($ac_try" in |
|
|
8784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8785 | *) ac_try_echo=$ac_try;; |
|
|
8786 | esac |
|
|
8787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8788 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8789 | ac_status=$? |
|
|
8790 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8791 | rm -f conftest.er1 |
|
|
8792 | cat conftest.err >&5 |
|
|
8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8794 | (exit $ac_status); } && { |
|
|
8795 | test -z "$ac_cxx_werror_flag" || |
|
|
8796 | test ! -s conftest.err |
|
|
8797 | } && test -s conftest.$ac_objext; then |
|
|
8798 | ac_cv_type_long_long=yes |
|
|
8799 | else |
|
|
8800 | echo "$as_me: failed program was:" >&5 |
|
|
8801 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8802 | |
|
|
8803 | ac_cv_type_long_long=no |
|
|
8804 | fi |
|
|
8805 | |
|
|
8806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8807 | fi |
|
|
8808 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8809 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8810 | |
|
|
8811 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8814 | # This bug is HP SR number 8606223364. |
|
|
8815 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8816 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8817 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8819 | else |
|
|
8820 | if test "$cross_compiling" = yes; then |
|
|
8821 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8823 | /* confdefs.h. */ |
|
|
8824 | _ACEOF |
|
|
8825 | cat confdefs.h >>conftest.$ac_ext |
|
|
8826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8827 | /* end confdefs.h. */ |
|
|
8828 | $ac_includes_default |
|
|
8829 | typedef long long ac__type_sizeof_; |
|
|
8830 | int |
|
|
8831 | main () |
|
|
8832 | { |
|
|
8833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8834 | test_array [0] = 0 |
|
|
8835 | |
|
|
8836 | ; |
|
|
8837 | return 0; |
|
|
8838 | } |
|
|
8839 | _ACEOF |
|
|
8840 | rm -f conftest.$ac_objext |
|
|
8841 | if { (ac_try="$ac_compile" |
|
|
8842 | case "(($ac_try" in |
|
|
8843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8844 | *) ac_try_echo=$ac_try;; |
|
|
8845 | esac |
|
|
8846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8847 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8848 | ac_status=$? |
|
|
8849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8850 | rm -f conftest.er1 |
|
|
8851 | cat conftest.err >&5 |
|
|
8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8853 | (exit $ac_status); } && { |
|
|
8854 | test -z "$ac_cxx_werror_flag" || |
|
|
8855 | test ! -s conftest.err |
|
|
8856 | } && test -s conftest.$ac_objext; then |
|
|
8857 | ac_lo=0 ac_mid=0 |
|
|
8858 | while :; do |
|
|
8859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8860 | /* confdefs.h. */ |
|
|
8861 | _ACEOF |
|
|
8862 | cat confdefs.h >>conftest.$ac_ext |
|
|
8863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8864 | /* end confdefs.h. */ |
|
|
8865 | $ac_includes_default |
|
|
8866 | typedef long long ac__type_sizeof_; |
|
|
8867 | int |
|
|
8868 | main () |
|
|
8869 | { |
|
|
8870 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8871 | test_array [0] = 0 |
|
|
8872 | |
|
|
8873 | ; |
|
|
8874 | return 0; |
|
|
8875 | } |
|
|
8876 | _ACEOF |
|
|
8877 | rm -f conftest.$ac_objext |
|
|
8878 | if { (ac_try="$ac_compile" |
|
|
8879 | case "(($ac_try" in |
|
|
8880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8881 | *) ac_try_echo=$ac_try;; |
|
|
8882 | esac |
|
|
8883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8884 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8885 | ac_status=$? |
|
|
8886 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8887 | rm -f conftest.er1 |
|
|
8888 | cat conftest.err >&5 |
|
|
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8890 | (exit $ac_status); } && { |
|
|
8891 | test -z "$ac_cxx_werror_flag" || |
|
|
8892 | test ! -s conftest.err |
|
|
8893 | } && test -s conftest.$ac_objext; then |
|
|
8894 | ac_hi=$ac_mid; break |
|
|
8895 | else |
|
|
8896 | echo "$as_me: failed program was:" >&5 |
|
|
8897 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8898 | |
|
|
8899 | ac_lo=`expr $ac_mid + 1` |
|
|
8900 | if test $ac_lo -le $ac_mid; then |
|
|
8901 | ac_lo= ac_hi= |
|
|
8902 | break |
|
|
8903 | fi |
|
|
8904 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8905 | fi |
|
|
8906 | |
|
|
8907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8908 | done |
|
|
8909 | else |
|
|
8910 | echo "$as_me: failed program was:" >&5 |
|
|
8911 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8912 | |
|
|
8913 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8914 | /* confdefs.h. */ |
|
|
8915 | _ACEOF |
|
|
8916 | cat confdefs.h >>conftest.$ac_ext |
|
|
8917 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8918 | /* end confdefs.h. */ |
|
|
8919 | $ac_includes_default |
|
|
8920 | typedef long long ac__type_sizeof_; |
|
|
8921 | int |
|
|
8922 | main () |
|
|
8923 | { |
|
|
8924 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8925 | test_array [0] = 0 |
|
|
8926 | |
|
|
8927 | ; |
|
|
8928 | return 0; |
|
|
8929 | } |
|
|
8930 | _ACEOF |
|
|
8931 | rm -f conftest.$ac_objext |
|
|
8932 | if { (ac_try="$ac_compile" |
|
|
8933 | case "(($ac_try" in |
|
|
8934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8935 | *) ac_try_echo=$ac_try;; |
|
|
8936 | esac |
|
|
8937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8938 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8939 | ac_status=$? |
|
|
8940 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8941 | rm -f conftest.er1 |
|
|
8942 | cat conftest.err >&5 |
|
|
8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8944 | (exit $ac_status); } && { |
|
|
8945 | test -z "$ac_cxx_werror_flag" || |
|
|
8946 | test ! -s conftest.err |
|
|
8947 | } && test -s conftest.$ac_objext; then |
|
|
8948 | ac_hi=-1 ac_mid=-1 |
|
|
8949 | while :; do |
|
|
8950 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8951 | /* confdefs.h. */ |
|
|
8952 | _ACEOF |
|
|
8953 | cat confdefs.h >>conftest.$ac_ext |
|
|
8954 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8955 | /* end confdefs.h. */ |
|
|
8956 | $ac_includes_default |
|
|
8957 | typedef long long ac__type_sizeof_; |
|
|
8958 | int |
|
|
8959 | main () |
|
|
8960 | { |
|
|
8961 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8962 | test_array [0] = 0 |
|
|
8963 | |
|
|
8964 | ; |
|
|
8965 | return 0; |
|
|
8966 | } |
|
|
8967 | _ACEOF |
|
|
8968 | rm -f conftest.$ac_objext |
|
|
8969 | if { (ac_try="$ac_compile" |
|
|
8970 | case "(($ac_try" in |
|
|
8971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8972 | *) ac_try_echo=$ac_try;; |
|
|
8973 | esac |
|
|
8974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8975 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8976 | ac_status=$? |
|
|
8977 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8978 | rm -f conftest.er1 |
|
|
8979 | cat conftest.err >&5 |
|
|
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8981 | (exit $ac_status); } && { |
|
|
8982 | test -z "$ac_cxx_werror_flag" || |
|
|
8983 | test ! -s conftest.err |
|
|
8984 | } && test -s conftest.$ac_objext; then |
|
|
8985 | ac_lo=$ac_mid; break |
|
|
8986 | else |
|
|
8987 | echo "$as_me: failed program was:" >&5 |
|
|
8988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8989 | |
|
|
8990 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8991 | if test $ac_mid -le $ac_hi; then |
|
|
8992 | ac_lo= ac_hi= |
|
|
8993 | break |
|
|
8994 | fi |
|
|
8995 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8996 | fi |
|
|
8997 | |
|
|
8998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8999 | done |
|
|
9000 | else |
|
|
9001 | echo "$as_me: failed program was:" >&5 |
|
|
9002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9003 | |
|
|
9004 | ac_lo= ac_hi= |
|
|
9005 | fi |
|
|
9006 | |
|
|
9007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9008 | fi |
|
|
9009 | |
|
|
9010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9011 | # Binary search between lo and hi bounds. |
|
|
9012 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9013 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9014 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9015 | /* confdefs.h. */ |
|
|
9016 | _ACEOF |
|
|
9017 | cat confdefs.h >>conftest.$ac_ext |
|
|
9018 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9019 | /* end confdefs.h. */ |
|
|
9020 | $ac_includes_default |
|
|
9021 | typedef long long ac__type_sizeof_; |
|
|
9022 | int |
|
|
9023 | main () |
|
|
9024 | { |
|
|
9025 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9026 | test_array [0] = 0 |
|
|
9027 | |
|
|
9028 | ; |
|
|
9029 | return 0; |
|
|
9030 | } |
|
|
9031 | _ACEOF |
|
|
9032 | rm -f conftest.$ac_objext |
|
|
9033 | if { (ac_try="$ac_compile" |
|
|
9034 | case "(($ac_try" in |
|
|
9035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9036 | *) ac_try_echo=$ac_try;; |
|
|
9037 | esac |
|
|
9038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9039 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9040 | ac_status=$? |
|
|
9041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9042 | rm -f conftest.er1 |
|
|
9043 | cat conftest.err >&5 |
|
|
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9045 | (exit $ac_status); } && { |
|
|
9046 | test -z "$ac_cxx_werror_flag" || |
|
|
9047 | test ! -s conftest.err |
|
|
9048 | } && test -s conftest.$ac_objext; then |
|
|
9049 | ac_hi=$ac_mid |
|
|
9050 | else |
|
|
9051 | echo "$as_me: failed program was:" >&5 |
|
|
9052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9053 | |
|
|
9054 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9055 | fi |
|
|
9056 | |
|
|
9057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9058 | done |
|
|
9059 | case $ac_lo in |
|
|
9060 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9061 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9062 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9063 | See \`config.log' for more details." >&5 |
|
|
9064 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9065 | See \`config.log' for more details." >&2;} |
|
|
9066 | { (exit 77); exit 77; }; } |
|
|
9067 | else |
|
|
9068 | ac_cv_sizeof_long_long=0 |
|
|
9069 | fi ;; |
|
|
9070 | esac |
|
|
9071 | else |
|
|
9072 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9073 | /* confdefs.h. */ |
|
|
9074 | _ACEOF |
|
|
9075 | cat confdefs.h >>conftest.$ac_ext |
|
|
9076 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9077 | /* end confdefs.h. */ |
|
|
9078 | $ac_includes_default |
|
|
9079 | typedef long long ac__type_sizeof_; |
|
|
9080 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9081 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9082 | #include <stdio.h> |
|
|
9083 | #include <stdlib.h> |
|
|
9084 | int |
|
|
9085 | main () |
|
|
9086 | { |
|
|
9087 | |
|
|
9088 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9089 | if (! f) |
|
|
9090 | return 1; |
|
|
9091 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9092 | { |
|
|
9093 | long int i = longval (); |
|
|
9094 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9095 | return 1; |
|
|
9096 | fprintf (f, "%ld\n", i); |
|
|
9097 | } |
|
|
9098 | else |
|
|
9099 | { |
|
|
9100 | unsigned long int i = ulongval (); |
|
|
9101 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9102 | return 1; |
|
|
9103 | fprintf (f, "%lu\n", i); |
|
|
9104 | } |
|
|
9105 | return ferror (f) || fclose (f) != 0; |
|
|
9106 | |
|
|
9107 | ; |
|
|
9108 | return 0; |
|
|
9109 | } |
|
|
9110 | _ACEOF |
|
|
9111 | rm -f conftest$ac_exeext |
|
|
9112 | if { (ac_try="$ac_link" |
|
|
9113 | case "(($ac_try" in |
|
|
9114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9115 | *) ac_try_echo=$ac_try;; |
|
|
9116 | esac |
|
|
9117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9118 | (eval "$ac_link") 2>&5 |
|
|
9119 | ac_status=$? |
|
|
9120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9121 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9122 | { (case "(($ac_try" in |
|
|
9123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9124 | *) ac_try_echo=$ac_try;; |
|
|
9125 | esac |
|
|
9126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9127 | (eval "$ac_try") 2>&5 |
|
|
9128 | ac_status=$? |
|
|
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9130 | (exit $ac_status); }; }; then |
|
|
9131 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9132 | else |
|
|
9133 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9134 | echo "$as_me: failed program was:" >&5 |
|
|
9135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9136 | |
|
|
9137 | ( exit $ac_status ) |
|
|
9138 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9139 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9140 | See \`config.log' for more details." >&5 |
|
|
9141 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9142 | See \`config.log' for more details." >&2;} |
|
|
9143 | { (exit 77); exit 77; }; } |
|
|
9144 | else |
|
|
9145 | ac_cv_sizeof_long_long=0 |
|
|
9146 | fi |
|
|
9147 | fi |
|
|
9148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9149 | fi |
|
|
9150 | rm -f conftest.val |
|
|
9151 | fi |
|
|
9152 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9153 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9154 | |
|
|
9155 | |
|
|
9156 | |
|
|
9157 | cat >>confdefs.h <<_ACEOF |
|
|
9158 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9159 | _ACEOF |
|
|
9160 | |
|
|
9161 | |
|
|
9162 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9163 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9164 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9166 | else |
|
|
9167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9168 | /* confdefs.h. */ |
|
|
9169 | _ACEOF |
|
|
9170 | cat confdefs.h >>conftest.$ac_ext |
|
|
9171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9172 | /* end confdefs.h. */ |
|
|
9173 | $ac_includes_default |
|
|
9174 | typedef int * ac__type_new_; |
|
|
9175 | int |
|
|
9176 | main () |
|
|
9177 | { |
|
|
9178 | if ((ac__type_new_ *) 0) |
|
|
9179 | return 0; |
|
|
9180 | if (sizeof (ac__type_new_)) |
|
|
9181 | return 0; |
|
|
9182 | ; |
|
|
9183 | return 0; |
|
|
9184 | } |
|
|
9185 | _ACEOF |
|
|
9186 | rm -f conftest.$ac_objext |
|
|
9187 | if { (ac_try="$ac_compile" |
|
|
9188 | case "(($ac_try" in |
|
|
9189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9190 | *) ac_try_echo=$ac_try;; |
|
|
9191 | esac |
|
|
9192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9193 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9194 | ac_status=$? |
|
|
9195 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9196 | rm -f conftest.er1 |
|
|
9197 | cat conftest.err >&5 |
|
|
9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9199 | (exit $ac_status); } && { |
|
|
9200 | test -z "$ac_cxx_werror_flag" || |
|
|
9201 | test ! -s conftest.err |
|
|
9202 | } && test -s conftest.$ac_objext; then |
|
|
9203 | ac_cv_type_int_p=yes |
|
|
9204 | else |
|
|
9205 | echo "$as_me: failed program was:" >&5 |
|
|
9206 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9207 | |
|
|
9208 | ac_cv_type_int_p=no |
|
|
9209 | fi |
|
|
9210 | |
|
|
9211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9212 | fi |
|
|
9213 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9214 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9215 | |
|
|
9216 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9217 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9218 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9219 | # This bug is HP SR number 8606223364. |
|
|
9220 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9221 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9222 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9224 | else |
|
|
9225 | if test "$cross_compiling" = yes; then |
|
|
9226 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9228 | /* confdefs.h. */ |
|
|
9229 | _ACEOF |
|
|
9230 | cat confdefs.h >>conftest.$ac_ext |
|
|
9231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9232 | /* end confdefs.h. */ |
|
|
9233 | $ac_includes_default |
|
|
9234 | typedef int * ac__type_sizeof_; |
|
|
9235 | int |
|
|
9236 | main () |
|
|
9237 | { |
|
|
9238 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9239 | test_array [0] = 0 |
|
|
9240 | |
|
|
9241 | ; |
|
|
9242 | return 0; |
|
|
9243 | } |
|
|
9244 | _ACEOF |
|
|
9245 | rm -f conftest.$ac_objext |
|
|
9246 | if { (ac_try="$ac_compile" |
|
|
9247 | case "(($ac_try" in |
|
|
9248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9249 | *) ac_try_echo=$ac_try;; |
|
|
9250 | esac |
|
|
9251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9252 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9253 | ac_status=$? |
|
|
9254 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9255 | rm -f conftest.er1 |
|
|
9256 | cat conftest.err >&5 |
|
|
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9258 | (exit $ac_status); } && { |
|
|
9259 | test -z "$ac_cxx_werror_flag" || |
|
|
9260 | test ! -s conftest.err |
|
|
9261 | } && test -s conftest.$ac_objext; then |
|
|
9262 | ac_lo=0 ac_mid=0 |
|
|
9263 | while :; do |
|
|
9264 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9265 | /* confdefs.h. */ |
|
|
9266 | _ACEOF |
|
|
9267 | cat confdefs.h >>conftest.$ac_ext |
|
|
9268 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9269 | /* end confdefs.h. */ |
|
|
9270 | $ac_includes_default |
|
|
9271 | typedef int * ac__type_sizeof_; |
|
|
9272 | int |
|
|
9273 | main () |
|
|
9274 | { |
|
|
9275 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9276 | test_array [0] = 0 |
|
|
9277 | |
|
|
9278 | ; |
|
|
9279 | return 0; |
|
|
9280 | } |
|
|
9281 | _ACEOF |
|
|
9282 | rm -f conftest.$ac_objext |
|
|
9283 | if { (ac_try="$ac_compile" |
|
|
9284 | case "(($ac_try" in |
|
|
9285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9286 | *) ac_try_echo=$ac_try;; |
|
|
9287 | esac |
|
|
9288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9289 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9290 | ac_status=$? |
|
|
9291 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9292 | rm -f conftest.er1 |
|
|
9293 | cat conftest.err >&5 |
|
|
9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9295 | (exit $ac_status); } && { |
|
|
9296 | test -z "$ac_cxx_werror_flag" || |
|
|
9297 | test ! -s conftest.err |
|
|
9298 | } && test -s conftest.$ac_objext; then |
|
|
9299 | ac_hi=$ac_mid; break |
|
|
9300 | else |
|
|
9301 | echo "$as_me: failed program was:" >&5 |
|
|
9302 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9303 | |
|
|
9304 | ac_lo=`expr $ac_mid + 1` |
|
|
9305 | if test $ac_lo -le $ac_mid; then |
|
|
9306 | ac_lo= ac_hi= |
|
|
9307 | break |
|
|
9308 | fi |
|
|
9309 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9310 | fi |
|
|
9311 | |
|
|
9312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9313 | done |
|
|
9314 | else |
|
|
9315 | echo "$as_me: failed program was:" >&5 |
|
|
9316 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9317 | |
|
|
9318 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9319 | /* confdefs.h. */ |
|
|
9320 | _ACEOF |
|
|
9321 | cat confdefs.h >>conftest.$ac_ext |
|
|
9322 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9323 | /* end confdefs.h. */ |
|
|
9324 | $ac_includes_default |
|
|
9325 | typedef int * ac__type_sizeof_; |
|
|
9326 | int |
|
|
9327 | main () |
|
|
9328 | { |
|
|
9329 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9330 | test_array [0] = 0 |
|
|
9331 | |
|
|
9332 | ; |
|
|
9333 | return 0; |
|
|
9334 | } |
|
|
9335 | _ACEOF |
|
|
9336 | rm -f conftest.$ac_objext |
|
|
9337 | if { (ac_try="$ac_compile" |
|
|
9338 | case "(($ac_try" in |
|
|
9339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9340 | *) ac_try_echo=$ac_try;; |
|
|
9341 | esac |
|
|
9342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9343 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9344 | ac_status=$? |
|
|
9345 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9346 | rm -f conftest.er1 |
|
|
9347 | cat conftest.err >&5 |
|
|
9348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9349 | (exit $ac_status); } && { |
|
|
9350 | test -z "$ac_cxx_werror_flag" || |
|
|
9351 | test ! -s conftest.err |
|
|
9352 | } && test -s conftest.$ac_objext; then |
|
|
9353 | ac_hi=-1 ac_mid=-1 |
|
|
9354 | while :; do |
|
|
9355 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9356 | /* confdefs.h. */ |
|
|
9357 | _ACEOF |
|
|
9358 | cat confdefs.h >>conftest.$ac_ext |
|
|
9359 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9360 | /* end confdefs.h. */ |
|
|
9361 | $ac_includes_default |
|
|
9362 | typedef int * ac__type_sizeof_; |
|
|
9363 | int |
|
|
9364 | main () |
|
|
9365 | { |
|
|
9366 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9367 | test_array [0] = 0 |
|
|
9368 | |
|
|
9369 | ; |
|
|
9370 | return 0; |
|
|
9371 | } |
|
|
9372 | _ACEOF |
|
|
9373 | rm -f conftest.$ac_objext |
|
|
9374 | if { (ac_try="$ac_compile" |
|
|
9375 | case "(($ac_try" in |
|
|
9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9377 | *) ac_try_echo=$ac_try;; |
|
|
9378 | esac |
|
|
9379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9380 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9381 | ac_status=$? |
|
|
9382 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9383 | rm -f conftest.er1 |
|
|
9384 | cat conftest.err >&5 |
|
|
9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9386 | (exit $ac_status); } && { |
|
|
9387 | test -z "$ac_cxx_werror_flag" || |
|
|
9388 | test ! -s conftest.err |
|
|
9389 | } && test -s conftest.$ac_objext; then |
|
|
9390 | ac_lo=$ac_mid; break |
|
|
9391 | else |
|
|
9392 | echo "$as_me: failed program was:" >&5 |
|
|
9393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9394 | |
|
|
9395 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9396 | if test $ac_mid -le $ac_hi; then |
|
|
9397 | ac_lo= ac_hi= |
|
|
9398 | break |
|
|
9399 | fi |
|
|
9400 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9401 | fi |
|
|
9402 | |
|
|
9403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9404 | done |
|
|
9405 | else |
|
|
9406 | echo "$as_me: failed program was:" >&5 |
|
|
9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9408 | |
|
|
9409 | ac_lo= ac_hi= |
|
|
9410 | fi |
|
|
9411 | |
|
|
9412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9413 | fi |
|
|
9414 | |
|
|
9415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9416 | # Binary search between lo and hi bounds. |
|
|
9417 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9418 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9419 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9420 | /* confdefs.h. */ |
|
|
9421 | _ACEOF |
|
|
9422 | cat confdefs.h >>conftest.$ac_ext |
|
|
9423 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9424 | /* end confdefs.h. */ |
|
|
9425 | $ac_includes_default |
|
|
9426 | typedef int * ac__type_sizeof_; |
|
|
9427 | int |
|
|
9428 | main () |
|
|
9429 | { |
|
|
9430 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9431 | test_array [0] = 0 |
|
|
9432 | |
|
|
9433 | ; |
|
|
9434 | return 0; |
|
|
9435 | } |
|
|
9436 | _ACEOF |
|
|
9437 | rm -f conftest.$ac_objext |
|
|
9438 | if { (ac_try="$ac_compile" |
|
|
9439 | case "(($ac_try" in |
|
|
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9441 | *) ac_try_echo=$ac_try;; |
|
|
9442 | esac |
|
|
9443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9444 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9445 | ac_status=$? |
|
|
9446 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9447 | rm -f conftest.er1 |
|
|
9448 | cat conftest.err >&5 |
|
|
9449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9450 | (exit $ac_status); } && { |
|
|
9451 | test -z "$ac_cxx_werror_flag" || |
|
|
9452 | test ! -s conftest.err |
|
|
9453 | } && test -s conftest.$ac_objext; then |
|
|
9454 | ac_hi=$ac_mid |
|
|
9455 | else |
|
|
9456 | echo "$as_me: failed program was:" >&5 |
|
|
9457 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9458 | |
|
|
9459 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9460 | fi |
|
|
9461 | |
|
|
9462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9463 | done |
|
|
9464 | case $ac_lo in |
|
|
9465 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9466 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9467 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9468 | See \`config.log' for more details." >&5 |
|
|
9469 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9470 | See \`config.log' for more details." >&2;} |
|
|
9471 | { (exit 77); exit 77; }; } |
|
|
9472 | else |
|
|
9473 | ac_cv_sizeof_int_p=0 |
|
|
9474 | fi ;; |
|
|
9475 | esac |
|
|
9476 | else |
|
|
9477 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9478 | /* confdefs.h. */ |
|
|
9479 | _ACEOF |
|
|
9480 | cat confdefs.h >>conftest.$ac_ext |
|
|
9481 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9482 | /* end confdefs.h. */ |
|
|
9483 | $ac_includes_default |
|
|
9484 | typedef int * ac__type_sizeof_; |
|
|
9485 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9486 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9487 | #include <stdio.h> |
|
|
9488 | #include <stdlib.h> |
|
|
9489 | int |
|
|
9490 | main () |
|
|
9491 | { |
|
|
9492 | |
|
|
9493 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9494 | if (! f) |
|
|
9495 | return 1; |
|
|
9496 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9497 | { |
|
|
9498 | long int i = longval (); |
|
|
9499 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9500 | return 1; |
|
|
9501 | fprintf (f, "%ld\n", i); |
|
|
9502 | } |
|
|
9503 | else |
|
|
9504 | { |
|
|
9505 | unsigned long int i = ulongval (); |
|
|
9506 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9507 | return 1; |
|
|
9508 | fprintf (f, "%lu\n", i); |
|
|
9509 | } |
|
|
9510 | return ferror (f) || fclose (f) != 0; |
|
|
9511 | |
|
|
9512 | ; |
|
|
9513 | return 0; |
|
|
9514 | } |
|
|
9515 | _ACEOF |
|
|
9516 | rm -f conftest$ac_exeext |
|
|
9517 | if { (ac_try="$ac_link" |
|
|
9518 | case "(($ac_try" in |
|
|
9519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9520 | *) ac_try_echo=$ac_try;; |
|
|
9521 | esac |
|
|
9522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9523 | (eval "$ac_link") 2>&5 |
|
|
9524 | ac_status=$? |
|
|
9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9527 | { (case "(($ac_try" in |
|
|
9528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9529 | *) ac_try_echo=$ac_try;; |
|
|
9530 | esac |
|
|
9531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9532 | (eval "$ac_try") 2>&5 |
|
|
9533 | ac_status=$? |
|
|
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9535 | (exit $ac_status); }; }; then |
|
|
9536 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9537 | else |
|
|
9538 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9539 | echo "$as_me: failed program was:" >&5 |
|
|
9540 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9541 | |
|
|
9542 | ( exit $ac_status ) |
|
|
9543 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9544 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9545 | See \`config.log' for more details." >&5 |
|
|
9546 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9547 | See \`config.log' for more details." >&2;} |
|
|
9548 | { (exit 77); exit 77; }; } |
|
|
9549 | else |
|
|
9550 | ac_cv_sizeof_int_p=0 |
|
|
9551 | fi |
|
|
9552 | fi |
|
|
9553 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9554 | fi |
|
|
9555 | rm -f conftest.val |
|
|
9556 | fi |
|
|
9557 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9558 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9559 | |
|
|
9560 | |
|
|
9561 | |
|
|
9562 | cat >>confdefs.h <<_ACEOF |
|
|
9563 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9564 | _ACEOF |
|
|
9565 | |
|
|
9566 | |
|
|
9567 | |
|
|
9568 | |
|
|
9569 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9570 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9571 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9573 | else |
|
|
9574 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9575 | /* confdefs.h. */ |
|
|
9576 | _ACEOF |
|
|
9577 | cat confdefs.h >>conftest.$ac_ext |
|
|
9578 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9579 | /* end confdefs.h. */ |
|
|
9580 | #include <stdint.h> |
|
|
9581 | int |
|
|
9582 | main () |
|
|
9583 | { |
|
|
9584 | int16_t dummy; |
|
|
9585 | ; |
|
|
9586 | return 0; |
|
|
9587 | } |
|
|
9588 | _ACEOF |
|
|
9589 | rm -f conftest.$ac_objext |
|
|
9590 | if { (ac_try="$ac_compile" |
|
|
9591 | case "(($ac_try" in |
|
|
9592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9593 | *) ac_try_echo=$ac_try;; |
|
|
9594 | esac |
|
|
9595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9596 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9597 | ac_status=$? |
|
|
9598 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9599 | rm -f conftest.er1 |
|
|
9600 | cat conftest.err >&5 |
|
|
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9602 | (exit $ac_status); } && { |
|
|
9603 | test -z "$ac_cxx_werror_flag" || |
|
|
9604 | test ! -s conftest.err |
|
|
9605 | } && test -s conftest.$ac_objext; then |
|
|
9606 | rxvt_cv_int16_t=yes |
|
|
9607 | else |
|
|
9608 | echo "$as_me: failed program was:" >&5 |
|
|
9609 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9610 | |
|
|
9611 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9612 | rxvt_cv_int16_t=" char" |
|
|
9613 | else |
|
|
9614 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9615 | rxvt_cv_int16_t=" short" |
|
|
9616 | else |
|
|
9617 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9618 | rxvt_cv_int16_t=" int" |
|
|
9619 | else |
|
|
9620 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9621 | rxvt_cv_int16_t=" long" |
|
|
9622 | else |
|
|
9623 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9624 | rxvt_cv_int16_t=" long long" |
|
|
9625 | else |
|
|
9626 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9627 | fi |
|
|
9628 | fi |
|
|
9629 | fi |
|
|
9630 | fi |
|
|
9631 | fi |
|
|
9632 | fi |
|
|
9633 | |
|
|
9634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9635 | fi |
|
|
9636 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9637 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9638 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9639 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9640 | else |
|
|
9641 | if test x"" = x; then |
|
|
9642 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9643 | else |
|
|
9644 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9645 | fi |
|
|
9646 | fi |
|
|
9647 | |
|
|
9648 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9649 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9650 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9652 | else |
|
|
9653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9654 | /* confdefs.h. */ |
|
|
9655 | _ACEOF |
|
|
9656 | cat confdefs.h >>conftest.$ac_ext |
|
|
9657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9658 | /* end confdefs.h. */ |
|
|
9659 | #include <stdint.h> |
|
|
9660 | int |
|
|
9661 | main () |
|
|
9662 | { |
|
|
9663 | uint16_t dummy; |
|
|
9664 | ; |
|
|
9665 | return 0; |
|
|
9666 | } |
|
|
9667 | _ACEOF |
|
|
9668 | rm -f conftest.$ac_objext |
|
|
9669 | if { (ac_try="$ac_compile" |
|
|
9670 | case "(($ac_try" in |
|
|
9671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9672 | *) ac_try_echo=$ac_try;; |
|
|
9673 | esac |
|
|
9674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9675 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9676 | ac_status=$? |
|
|
9677 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9678 | rm -f conftest.er1 |
|
|
9679 | cat conftest.err >&5 |
|
|
9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9681 | (exit $ac_status); } && { |
|
|
9682 | test -z "$ac_cxx_werror_flag" || |
|
|
9683 | test ! -s conftest.err |
|
|
9684 | } && test -s conftest.$ac_objext; then |
|
|
9685 | rxvt_cv_uint16_t=yes |
|
|
9686 | else |
|
|
9687 | echo "$as_me: failed program was:" >&5 |
|
|
9688 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9689 | |
|
|
9690 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9691 | rxvt_cv_uint16_t="unsigned char" |
|
|
9692 | else |
|
|
9693 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9694 | rxvt_cv_uint16_t="unsigned short" |
|
|
9695 | else |
|
|
9696 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9697 | rxvt_cv_uint16_t="unsigned int" |
|
|
9698 | else |
|
|
9699 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9700 | rxvt_cv_uint16_t="unsigned long" |
|
|
9701 | else |
|
|
9702 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9703 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9704 | else |
|
|
9705 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9706 | fi |
|
|
9707 | fi |
|
|
9708 | fi |
|
|
9709 | fi |
|
|
9710 | fi |
|
|
9711 | fi |
|
|
9712 | |
|
|
9713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9714 | fi |
|
|
9715 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9716 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9717 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9718 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9719 | else |
|
|
9720 | if test x"unsigned" = x; then |
|
|
9721 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9722 | else |
|
|
9723 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9724 | fi |
|
|
9725 | fi |
|
|
9726 | |
|
|
9727 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9728 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9729 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9731 | else |
|
|
9732 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9733 | /* confdefs.h. */ |
|
|
9734 | _ACEOF |
|
|
9735 | cat confdefs.h >>conftest.$ac_ext |
|
|
9736 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9737 | /* end confdefs.h. */ |
|
|
9738 | #include <stdint.h> |
|
|
9739 | int |
|
|
9740 | main () |
|
|
9741 | { |
|
|
9742 | int32_t dummy; |
|
|
9743 | ; |
|
|
9744 | return 0; |
|
|
9745 | } |
|
|
9746 | _ACEOF |
|
|
9747 | rm -f conftest.$ac_objext |
|
|
9748 | if { (ac_try="$ac_compile" |
|
|
9749 | case "(($ac_try" in |
|
|
9750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9751 | *) ac_try_echo=$ac_try;; |
|
|
9752 | esac |
|
|
9753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9754 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9755 | ac_status=$? |
|
|
9756 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9757 | rm -f conftest.er1 |
|
|
9758 | cat conftest.err >&5 |
|
|
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9760 | (exit $ac_status); } && { |
|
|
9761 | test -z "$ac_cxx_werror_flag" || |
|
|
9762 | test ! -s conftest.err |
|
|
9763 | } && test -s conftest.$ac_objext; then |
|
|
9764 | rxvt_cv_int32_t=yes |
|
|
9765 | else |
|
|
9766 | echo "$as_me: failed program was:" >&5 |
|
|
9767 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9768 | |
|
|
9769 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9770 | rxvt_cv_int32_t=" char" |
|
|
9771 | else |
|
|
9772 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9773 | rxvt_cv_int32_t=" short" |
|
|
9774 | else |
|
|
9775 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9776 | rxvt_cv_int32_t=" int" |
|
|
9777 | else |
|
|
9778 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9779 | rxvt_cv_int32_t=" long" |
|
|
9780 | else |
|
|
9781 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9782 | rxvt_cv_int32_t=" long long" |
|
|
9783 | else |
|
|
9784 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9785 | fi |
|
|
9786 | fi |
|
|
9787 | fi |
|
|
9788 | fi |
|
|
9789 | fi |
|
|
9790 | fi |
|
|
9791 | |
|
|
9792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9793 | fi |
|
|
9794 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9795 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9796 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9797 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9798 | else |
|
|
9799 | if test x"" = x; then |
|
|
9800 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9801 | else |
|
|
9802 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9803 | fi |
|
|
9804 | fi |
|
|
9805 | |
|
|
9806 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9807 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9808 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9810 | else |
|
|
9811 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9812 | /* confdefs.h. */ |
|
|
9813 | _ACEOF |
|
|
9814 | cat confdefs.h >>conftest.$ac_ext |
|
|
9815 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9816 | /* end confdefs.h. */ |
|
|
9817 | #include <stdint.h> |
|
|
9818 | int |
|
|
9819 | main () |
|
|
9820 | { |
|
|
9821 | uint32_t dummy; |
|
|
9822 | ; |
|
|
9823 | return 0; |
|
|
9824 | } |
|
|
9825 | _ACEOF |
|
|
9826 | rm -f conftest.$ac_objext |
|
|
9827 | if { (ac_try="$ac_compile" |
|
|
9828 | case "(($ac_try" in |
|
|
9829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9830 | *) ac_try_echo=$ac_try;; |
|
|
9831 | esac |
|
|
9832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9833 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9834 | ac_status=$? |
|
|
9835 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9836 | rm -f conftest.er1 |
|
|
9837 | cat conftest.err >&5 |
|
|
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9839 | (exit $ac_status); } && { |
|
|
9840 | test -z "$ac_cxx_werror_flag" || |
|
|
9841 | test ! -s conftest.err |
|
|
9842 | } && test -s conftest.$ac_objext; then |
|
|
9843 | rxvt_cv_uint32_t=yes |
|
|
9844 | else |
|
|
9845 | echo "$as_me: failed program was:" >&5 |
|
|
9846 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9847 | |
|
|
9848 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9849 | rxvt_cv_uint32_t="unsigned char" |
|
|
9850 | else |
|
|
9851 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9852 | rxvt_cv_uint32_t="unsigned short" |
|
|
9853 | else |
|
|
9854 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9855 | rxvt_cv_uint32_t="unsigned int" |
|
|
9856 | else |
|
|
9857 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9858 | rxvt_cv_uint32_t="unsigned long" |
|
|
9859 | else |
|
|
9860 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9861 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9862 | else |
|
|
9863 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9864 | fi |
|
|
9865 | fi |
|
|
9866 | fi |
|
|
9867 | fi |
|
|
9868 | fi |
|
|
9869 | fi |
|
|
9870 | |
|
|
9871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9872 | fi |
|
|
9873 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9874 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9875 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9876 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9877 | else |
|
|
9878 | if test x"unsigned" = x; then |
|
|
9879 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9880 | else |
|
|
9881 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9882 | fi |
|
|
9883 | fi |
|
|
9884 | |
|
|
9885 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9886 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9887 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9888 | else |
|
|
9889 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9890 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9891 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9892 | else |
|
|
9893 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9894 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9895 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9896 | else |
|
|
9897 | rxvt_intp_define="#error set intp_t" |
|
|
9898 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9899 | fi |
|
|
9900 | fi |
|
|
9901 | fi |
|
|
9902 | |
|
|
9903 | |
|
|
9904 | |
|
|
9905 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9906 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9907 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9909 | else |
|
|
9910 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9911 | /* confdefs.h. */ |
|
|
9912 | _ACEOF |
|
|
9913 | cat confdefs.h >>conftest.$ac_ext |
|
|
9914 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9915 | /* end confdefs.h. */ |
|
|
9916 | #include <sys/types.h> |
|
|
9917 | #include <signal.h> |
|
|
9918 | |
|
|
9919 | int |
|
|
9920 | main () |
|
|
9921 | { |
|
|
9922 | return *(signal (0, 0)) (0) == 1; |
|
|
9923 | ; |
|
|
9924 | return 0; |
|
|
9925 | } |
|
|
9926 | _ACEOF |
|
|
9927 | rm -f conftest.$ac_objext |
|
|
9928 | if { (ac_try="$ac_compile" |
|
|
9929 | case "(($ac_try" in |
|
|
9930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9931 | *) ac_try_echo=$ac_try;; |
|
|
9932 | esac |
|
|
9933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9934 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9935 | ac_status=$? |
|
|
9936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9937 | rm -f conftest.er1 |
|
|
9938 | cat conftest.err >&5 |
|
|
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9940 | (exit $ac_status); } && { |
|
|
9941 | test -z "$ac_cxx_werror_flag" || |
|
|
9942 | test ! -s conftest.err |
|
|
9943 | } && test -s conftest.$ac_objext; then |
|
|
9944 | ac_cv_type_signal=int |
|
|
9945 | else |
|
|
9946 | echo "$as_me: failed program was:" >&5 |
|
|
9947 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9948 | |
|
|
9949 | ac_cv_type_signal=void |
|
|
9950 | fi |
|
|
9951 | |
|
|
9952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9953 | fi |
|
|
9954 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9955 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9956 | |
|
|
9957 | cat >>confdefs.h <<_ACEOF |
|
|
9958 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9959 | _ACEOF |
|
|
9960 | |
|
|
9961 | |
|
|
9962 | |
|
|
9963 | |
|
|
9964 | |
|
|
9965 | |
|
|
9966 | for ac_func in \ |
|
|
9967 | unsetenv \ |
|
|
9968 | setutent \ |
|
|
9969 | on_exit \ |
|
|
9970 | |
|
|
9971 | do |
|
|
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9973 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
9975 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9977 | else |
|
|
9978 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9979 | /* confdefs.h. */ |
|
|
9980 | _ACEOF |
|
|
9981 | cat confdefs.h >>conftest.$ac_ext |
|
|
9982 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9983 | /* end confdefs.h. */ |
|
|
9984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
9985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
9986 | #define $ac_func innocuous_$ac_func |
|
|
9987 | |
|
|
9988 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9989 | which can conflict with char $ac_func (); below. |
|
|
9990 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9991 | <limits.h> exists even on freestanding compilers. */ |
|
|
9992 | |
|
|
9993 | #ifdef __STDC__ |
|
|
9994 | # include <limits.h> |
|
|
9995 | #else |
|
|
9996 | # include <assert.h> |
|
|
9997 | #endif |
|
|
9998 | |
|
|
9999 | #undef $ac_func |
|
|
10000 | |
|
|
10001 | /* Override any GCC internal prototype to avoid an error. |
|
|
10002 | Use char because int might match the return type of a GCC |
|
|
10003 | builtin and then its argument prototype would still apply. */ |
|
|
10004 | #ifdef __cplusplus |
|
|
10005 | extern "C" |
|
|
10006 | #endif |
|
|
10007 | char $ac_func (); |
|
|
10008 | /* The GNU C library defines this for functions which it implements |
|
|
10009 | to always fail with ENOSYS. Some functions are actually named |
|
|
10010 | something starting with __ and the normal name is an alias. */ |
|
|
10011 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10012 | choke me |
|
|
10013 | #endif |
|
|
10014 | |
|
|
10015 | int |
|
|
10016 | main () |
|
|
10017 | { |
|
|
10018 | return $ac_func (); |
|
|
10019 | ; |
|
|
10020 | return 0; |
|
|
10021 | } |
|
|
10022 | _ACEOF |
|
|
10023 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10024 | if { (ac_try="$ac_link" |
|
|
10025 | case "(($ac_try" in |
|
|
10026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10027 | *) ac_try_echo=$ac_try;; |
|
|
10028 | esac |
|
|
10029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10030 | (eval "$ac_link") 2>conftest.er1 |
|
|
10031 | ac_status=$? |
|
|
10032 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10033 | rm -f conftest.er1 |
|
|
10034 | cat conftest.err >&5 |
|
|
10035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10036 | (exit $ac_status); } && { |
|
|
10037 | test -z "$ac_cxx_werror_flag" || |
|
|
10038 | test ! -s conftest.err |
|
|
10039 | } && test -s conftest$ac_exeext && |
|
|
10040 | $as_test_x conftest$ac_exeext; then |
|
|
10041 | eval "$as_ac_var=yes" |
|
|
10042 | else |
|
|
10043 | echo "$as_me: failed program was:" >&5 |
|
|
10044 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10045 | |
|
|
10046 | eval "$as_ac_var=no" |
|
|
10047 | fi |
|
|
10048 | |
|
|
10049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10050 | conftest$ac_exeext conftest.$ac_ext |
|
|
10051 | fi |
|
|
10052 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10054 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10055 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10056 | cat >>confdefs.h <<_ACEOF |
|
|
10057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10058 | _ACEOF |
|
|
10059 | |
|
|
10060 | fi |
|
|
10061 | done |
|
|
10062 | |
|
|
10063 | |
|
|
10064 | |
|
|
10065 | support_utmp=yes |
|
|
10066 | support_wtmp=yes |
|
|
10067 | support_lastlog=yes |
|
|
10068 | |
|
|
10069 | # Check whether --enable-utmp was given. |
|
|
10070 | if test "${enable_utmp+set}" = set; then |
|
|
10071 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10072 | support_utmp=$enableval |
|
|
10073 | fi |
|
|
10074 | fi |
|
|
10075 | |
|
|
10076 | |
|
|
10077 | # Check whether --enable-wtmp was given. |
|
|
10078 | if test "${enable_wtmp+set}" = set; then |
|
|
10079 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10080 | support_wtmp=$enableval |
|
|
10081 | fi |
|
|
10082 | fi |
|
|
10083 | |
|
|
10084 | |
|
|
10085 | # Check whether --enable-lastlog was given. |
|
|
10086 | if test "${enable_lastlog+set}" = set; then |
|
|
10087 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10088 | support_lastlog=$enableval |
|
|
10089 | fi |
|
|
10090 | fi |
|
|
10091 | |
|
|
10092 | |
|
|
10093 | if test x$support_utmp = xyes; then |
|
|
10094 | |
|
|
10095 | cat >>confdefs.h <<\_ACEOF |
|
|
10096 | #define UTMP_SUPPORT 1 |
|
|
10097 | _ACEOF |
|
|
10098 | |
|
|
10099 | fi |
|
|
10100 | if test x$support_wtmp = xyes; then |
|
|
10101 | |
|
|
10102 | cat >>confdefs.h <<\_ACEOF |
|
|
10103 | #define WTMP_SUPPORT 1 |
|
|
10104 | _ACEOF |
|
|
10105 | |
|
|
10106 | fi |
|
|
10107 | if test x$support_lastlog = xyes; then |
|
|
10108 | |
|
|
10109 | cat >>confdefs.h <<\_ACEOF |
|
|
10110 | #define LASTLOG_SUPPORT 1 |
|
|
10111 | _ACEOF |
|
|
10112 | |
|
|
10113 | fi |
|
|
10114 | |
|
|
10115 | |
|
|
10116 | |
|
|
10117 | |
|
|
10118 | for ac_func in \ |
|
|
10119 | ttyslot \ |
|
|
10120 | updwtmp \ |
|
|
10121 | updwtmpx \ |
|
|
10122 | |
|
|
10123 | do |
|
|
10124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10125 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10127 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10129 | else |
|
|
10130 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10131 | /* confdefs.h. */ |
|
|
10132 | _ACEOF |
|
|
10133 | cat confdefs.h >>conftest.$ac_ext |
|
|
10134 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10135 | /* end confdefs.h. */ |
|
|
10136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10138 | #define $ac_func innocuous_$ac_func |
|
|
10139 | |
|
|
10140 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10141 | which can conflict with char $ac_func (); below. |
|
|
10142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10143 | <limits.h> exists even on freestanding compilers. */ |
|
|
10144 | |
|
|
10145 | #ifdef __STDC__ |
|
|
10146 | # include <limits.h> |
|
|
10147 | #else |
|
|
10148 | # include <assert.h> |
|
|
10149 | #endif |
|
|
10150 | |
|
|
10151 | #undef $ac_func |
|
|
10152 | |
|
|
10153 | /* Override any GCC internal prototype to avoid an error. |
|
|
10154 | Use char because int might match the return type of a GCC |
|
|
10155 | builtin and then its argument prototype would still apply. */ |
|
|
10156 | #ifdef __cplusplus |
|
|
10157 | extern "C" |
|
|
10158 | #endif |
|
|
10159 | char $ac_func (); |
|
|
10160 | /* The GNU C library defines this for functions which it implements |
|
|
10161 | to always fail with ENOSYS. Some functions are actually named |
|
|
10162 | something starting with __ and the normal name is an alias. */ |
|
|
10163 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
10164 | choke me |
|
|
10165 | #endif |
|
|
10166 | |
|
|
10167 | int |
|
|
10168 | main () |
|
|
10169 | { |
|
|
10170 | return $ac_func (); |
|
|
10171 | ; |
|
|
10172 | return 0; |
|
|
10173 | } |
|
|
10174 | _ACEOF |
|
|
10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10176 | if { (ac_try="$ac_link" |
|
|
10177 | case "(($ac_try" in |
|
|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10179 | *) ac_try_echo=$ac_try;; |
|
|
10180 | esac |
|
|
10181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10182 | (eval "$ac_link") 2>conftest.er1 |
|
|
10183 | ac_status=$? |
|
|
10184 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10185 | rm -f conftest.er1 |
|
|
10186 | cat conftest.err >&5 |
|
|
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10188 | (exit $ac_status); } && { |
|
|
10189 | test -z "$ac_cxx_werror_flag" || |
|
|
10190 | test ! -s conftest.err |
|
|
10191 | } && test -s conftest$ac_exeext && |
|
|
10192 | $as_test_x conftest$ac_exeext; then |
|
|
10193 | eval "$as_ac_var=yes" |
|
|
10194 | else |
|
|
10195 | echo "$as_me: failed program was:" >&5 |
|
|
10196 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10197 | |
|
|
10198 | eval "$as_ac_var=no" |
|
|
10199 | fi |
|
|
10200 | |
|
|
10201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10202 | conftest$ac_exeext conftest.$ac_ext |
|
|
10203 | fi |
|
|
10204 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10206 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10207 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10208 | cat >>confdefs.h <<_ACEOF |
|
|
10209 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10210 | _ACEOF |
|
|
10211 | |
|
|
10212 | fi |
|
|
10213 | done |
|
|
10214 | |
|
|
10215 | |
|
|
10216 | |
|
|
10217 | |
|
|
10218 | |
|
|
10219 | for ac_header in \ |
|
|
10220 | utmp.h \ |
|
|
10221 | utmpx.h \ |
|
|
10222 | lastlog.h \ |
|
|
10223 | |
|
|
10224 | do |
|
|
10225 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10226 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10227 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
10229 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10231 | fi |
|
|
10232 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
10233 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10234 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10235 | else |
|
|
10236 | # Is the header compilable? |
|
|
10237 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
10239 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10240 | /* confdefs.h. */ |
|
|
10241 | _ACEOF |
|
|
10242 | cat confdefs.h >>conftest.$ac_ext |
|
|
10243 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10244 | /* end confdefs.h. */ |
|
|
10245 | $ac_includes_default |
|
|
10246 | #include <$ac_header> |
|
|
10247 | _ACEOF |
|
|
10248 | rm -f conftest.$ac_objext |
|
|
10249 | if { (ac_try="$ac_compile" |
|
|
10250 | case "(($ac_try" in |
|
|
10251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10252 | *) ac_try_echo=$ac_try;; |
|
|
10253 | esac |
|
|
10254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10255 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10256 | ac_status=$? |
|
|
10257 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10258 | rm -f conftest.er1 |
|
|
10259 | cat conftest.err >&5 |
|
|
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10261 | (exit $ac_status); } && { |
|
|
10262 | test -z "$ac_cxx_werror_flag" || |
|
|
10263 | test ! -s conftest.err |
|
|
10264 | } && test -s conftest.$ac_objext; then |
|
|
10265 | ac_header_compiler=yes |
|
|
10266 | else |
|
|
10267 | echo "$as_me: failed program was:" >&5 |
|
|
10268 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10269 | |
|
|
10270 | ac_header_compiler=no |
|
|
10271 | fi |
|
|
10272 | |
|
|
10273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10274 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10275 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
10276 | |
|
|
10277 | # Is the header present? |
|
|
10278 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10279 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
10280 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10281 | /* confdefs.h. */ |
|
|
10282 | _ACEOF |
|
|
10283 | cat confdefs.h >>conftest.$ac_ext |
|
|
10284 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10285 | /* end confdefs.h. */ |
|
|
10286 | #include <$ac_header> |
|
|
10287 | _ACEOF |
|
|
10288 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10289 | case "(($ac_try" in |
|
|
10290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10291 | *) ac_try_echo=$ac_try;; |
|
|
10292 | esac |
|
|
10293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10294 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
10295 | ac_status=$? |
|
|
10296 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10297 | rm -f conftest.er1 |
|
|
10298 | cat conftest.err >&5 |
|
|
10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10300 | (exit $ac_status); } >/dev/null && { |
|
|
10301 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
10302 | test ! -s conftest.err |
|
|
10303 | }; then |
|
|
10304 | ac_header_preproc=yes |
|
|
10305 | else |
|
|
10306 | echo "$as_me: failed program was:" >&5 |
|
|
10307 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10308 | |
|
|
10309 | ac_header_preproc=no |
|
|
10310 | fi |
|
|
10311 | |
|
|
10312 | rm -f conftest.err conftest.$ac_ext |
|
|
10313 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10314 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
10315 | |
|
|
10316 | # So? What about this header? |
|
|
10317 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10318 | yes:no: ) |
|
|
10319 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10320 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10321 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10322 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10323 | ac_header_preproc=yes |
|
|
10324 | ;; |
|
|
10325 | no:yes:* ) |
|
|
10326 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10327 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10328 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10329 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10330 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10331 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10332 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10333 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10335 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10337 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10338 | |
|
|
10339 | ;; |
|
|
10340 | esac |
|
|
10341 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
10343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10345 | else |
|
|
10346 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10347 | fi |
|
|
10348 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
10349 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10350 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10351 | |
|
|
10352 | fi |
|
|
10353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10354 | cat >>confdefs.h <<_ACEOF |
|
|
10355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10356 | _ACEOF |
|
|
10357 | |
|
|
10358 | fi |
|
|
10359 | |
|
|
10360 | done |
|
|
10361 | |
|
|
10362 | |
|
|
10363 | |
|
|
10364 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10365 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10366 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
|
|
10367 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10369 | fi |
|
|
10370 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10371 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
|
|
10372 | else |
|
|
10373 | # Is the header compilable? |
|
|
10374 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10375 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
|
|
10376 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10377 | /* confdefs.h. */ |
|
|
10378 | _ACEOF |
|
|
10379 | cat confdefs.h >>conftest.$ac_ext |
|
|
10380 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10381 | /* end confdefs.h. */ |
|
|
10382 | $ac_includes_default |
|
|
10383 | #include <utmp.h> |
|
|
10384 | _ACEOF |
|
|
10385 | rm -f conftest.$ac_objext |
|
|
10386 | if { (ac_try="$ac_compile" |
|
|
10387 | case "(($ac_try" in |
|
|
10388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10389 | *) ac_try_echo=$ac_try;; |
|
|
10390 | esac |
|
|
10391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10392 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10393 | ac_status=$? |
|
|
10394 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10395 | rm -f conftest.er1 |
|
|
10396 | cat conftest.err >&5 |
|
|
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10398 | (exit $ac_status); } && { |
|
|
10399 | test -z "$ac_cxx_werror_flag" || |
|
|
10400 | test ! -s conftest.err |
|
|
10401 | } && test -s conftest.$ac_objext; then |
|
|
10402 | ac_header_compiler=yes |
|
|
10403 | else |
|
|
10404 | echo "$as_me: failed program was:" >&5 |
|
|
10405 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10406 | |
|
|
10407 | ac_header_compiler=no |
|
|
10408 | fi |
|
|
10409 | |
|
|
10410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10412 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
10413 | |
|
|
10414 | # Is the header present? |
|
|
10415 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10416 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
|
|
10417 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10418 | /* confdefs.h. */ |
|
|
10419 | _ACEOF |
|
|
10420 | cat confdefs.h >>conftest.$ac_ext |
|
|
10421 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10422 | /* end confdefs.h. */ |
|
|
10423 | #include <utmp.h> |
|
|
10424 | _ACEOF |
|
|
10425 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10426 | case "(($ac_try" in |
|
|
10427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10428 | *) ac_try_echo=$ac_try;; |
|
|
10429 | esac |
|
|
10430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10431 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
10432 | ac_status=$? |
|
|
10433 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10434 | rm -f conftest.er1 |
|
|
10435 | cat conftest.err >&5 |
|
|
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10437 | (exit $ac_status); } >/dev/null && { |
|
|
10438 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
10439 | test ! -s conftest.err |
|
|
10440 | }; then |
|
|
10441 | ac_header_preproc=yes |
|
|
10442 | else |
|
|
10443 | echo "$as_me: failed program was:" >&5 |
|
|
10444 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10445 | |
|
|
10446 | ac_header_preproc=no |
|
|
10447 | fi |
|
|
10448 | |
|
|
10449 | rm -f conftest.err conftest.$ac_ext |
|
|
10450 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10451 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
10452 | |
|
|
10453 | # So? What about this header? |
|
|
10454 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10455 | yes:no: ) |
|
|
10456 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10457 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10458 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10459 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10460 | ac_header_preproc=yes |
|
|
10461 | ;; |
|
|
10462 | no:yes:* ) |
|
|
10463 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10464 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10465 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10466 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10467 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10468 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10469 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10470 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10471 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10472 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10473 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10474 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10475 | |
|
|
10476 | ;; |
|
|
10477 | esac |
|
|
10478 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10479 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
|
|
10480 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10482 | else |
|
|
10483 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10484 | fi |
|
|
10485 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10486 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
|
|
10487 | |
|
|
10488 | fi |
|
|
10489 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10490 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10491 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
|
|
10492 | if test "${struct_utmp+set}" = set; then |
|
|
10493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10494 | else |
|
|
10495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10496 | /* confdefs.h. */ |
|
|
10497 | _ACEOF |
|
|
10498 | cat confdefs.h >>conftest.$ac_ext |
|
|
10499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10500 | /* end confdefs.h. */ |
|
|
10501 | #include <sys/types.h> |
|
|
10502 | #include <utmp.h> |
|
|
10503 | int |
|
|
10504 | main () |
|
|
10505 | { |
|
|
10506 | struct utmp ut; |
|
|
10507 | ; |
|
|
10508 | return 0; |
|
|
10509 | } |
|
|
10510 | _ACEOF |
|
|
10511 | rm -f conftest.$ac_objext |
|
|
10512 | if { (ac_try="$ac_compile" |
|
|
10513 | case "(($ac_try" in |
|
|
10514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10515 | *) ac_try_echo=$ac_try;; |
|
|
10516 | esac |
|
|
10517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10518 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10519 | ac_status=$? |
|
|
10520 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10521 | rm -f conftest.er1 |
|
|
10522 | cat conftest.err >&5 |
|
|
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10524 | (exit $ac_status); } && { |
|
|
10525 | test -z "$ac_cxx_werror_flag" || |
|
|
10526 | test ! -s conftest.err |
|
|
10527 | } && test -s conftest.$ac_objext; then |
|
|
10528 | struct_utmp=yes |
|
|
10529 | else |
|
|
10530 | echo "$as_me: failed program was:" >&5 |
|
|
10531 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10532 | |
|
|
10533 | struct_utmp=no |
|
|
10534 | fi |
|
|
10535 | |
|
|
10536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10537 | fi |
|
|
10538 | { echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
10539 | echo "${ECHO_T}$struct_utmp" >&6; } |
|
|
10540 | if test x$struct_utmp = xyes; then |
|
|
10541 | |
|
|
10542 | cat >>confdefs.h <<\_ACEOF |
|
|
10543 | #define HAVE_STRUCT_UTMP 1 |
|
|
10544 | _ACEOF |
|
|
10545 | |
|
|
10546 | fi |
|
|
10547 | |
|
|
10548 | |
|
|
10549 | { echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10550 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; } |
|
|
10551 | if test "${struct_utmp_host+set}" = set; then |
|
|
10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10553 | else |
|
|
10554 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10555 | /* confdefs.h. */ |
|
|
10556 | _ACEOF |
|
|
10557 | cat confdefs.h >>conftest.$ac_ext |
|
|
10558 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10559 | /* end confdefs.h. */ |
|
|
10560 | #include <sys/types.h> |
|
|
10561 | #include <utmp.h> |
|
|
10562 | int |
|
|
10563 | main () |
|
|
10564 | { |
|
|
10565 | struct utmp ut; ut.ut_host; |
|
|
10566 | ; |
|
|
10567 | return 0; |
|
|
10568 | } |
|
|
10569 | _ACEOF |
|
|
10570 | rm -f conftest.$ac_objext |
|
|
10571 | if { (ac_try="$ac_compile" |
|
|
10572 | case "(($ac_try" in |
|
|
10573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10574 | *) ac_try_echo=$ac_try;; |
|
|
10575 | esac |
|
|
10576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10577 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10578 | ac_status=$? |
|
|
10579 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10580 | rm -f conftest.er1 |
|
|
10581 | cat conftest.err >&5 |
|
|
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10583 | (exit $ac_status); } && { |
|
|
10584 | test -z "$ac_cxx_werror_flag" || |
|
|
10585 | test ! -s conftest.err |
|
|
10586 | } && test -s conftest.$ac_objext; then |
|
|
10587 | struct_utmp_host=yes |
|
|
10588 | else |
|
|
10589 | echo "$as_me: failed program was:" >&5 |
|
|
10590 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10591 | |
|
|
10592 | struct_utmp_host=no |
|
|
10593 | fi |
|
|
10594 | |
|
|
10595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10596 | fi |
|
|
10597 | { echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
10598 | echo "${ECHO_T}$struct_utmp_host" >&6; } |
|
|
10599 | if test x$struct_utmp_host = xyes; then |
|
|
10600 | |
|
|
10601 | cat >>confdefs.h <<\_ACEOF |
|
|
10602 | #define HAVE_UTMP_HOST 1 |
|
|
10603 | _ACEOF |
|
|
10604 | |
|
|
10605 | fi |
|
|
10606 | |
|
|
10607 | { echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10608 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; } |
|
|
10609 | if test "${struct_utmp_pid+set}" = set; then |
|
|
10610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10611 | else |
|
|
10612 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10613 | /* confdefs.h. */ |
|
|
10614 | _ACEOF |
|
|
10615 | cat confdefs.h >>conftest.$ac_ext |
|
|
10616 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10617 | /* end confdefs.h. */ |
|
|
10618 | #include <sys/types.h> |
|
|
10619 | #include <utmp.h> |
|
|
10620 | int |
|
|
10621 | main () |
|
|
10622 | { |
|
|
10623 | struct utmp ut; ut.ut_pid; |
|
|
10624 | ; |
|
|
10625 | return 0; |
|
|
10626 | } |
|
|
10627 | _ACEOF |
|
|
10628 | rm -f conftest.$ac_objext |
|
|
10629 | if { (ac_try="$ac_compile" |
|
|
10630 | case "(($ac_try" in |
|
|
10631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10632 | *) ac_try_echo=$ac_try;; |
|
|
10633 | esac |
|
|
10634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10635 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10636 | ac_status=$? |
|
|
10637 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10638 | rm -f conftest.er1 |
|
|
10639 | cat conftest.err >&5 |
|
|
10640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10641 | (exit $ac_status); } && { |
|
|
10642 | test -z "$ac_cxx_werror_flag" || |
|
|
10643 | test ! -s conftest.err |
|
|
10644 | } && test -s conftest.$ac_objext; then |
|
|
10645 | struct_utmp_pid=yes |
|
|
10646 | else |
|
|
10647 | echo "$as_me: failed program was:" >&5 |
|
|
10648 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10649 | |
|
|
10650 | struct_utmp_pid=no |
|
|
10651 | fi |
|
|
10652 | |
|
|
10653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10654 | fi |
|
|
10655 | { echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
10656 | echo "${ECHO_T}$struct_utmp_pid" >&6; } |
|
|
10657 | if test x$struct_utmp_pid = xyes; then |
|
|
10658 | |
|
|
10659 | cat >>confdefs.h <<\_ACEOF |
|
|
10660 | #define HAVE_UTMP_PID 1 |
|
|
10661 | _ACEOF |
|
|
10662 | |
|
|
10663 | fi |
|
|
10664 | |
|
|
10665 | fi |
|
|
10666 | |
|
|
10667 | |
|
|
10668 | |
|
|
10669 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10670 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10671 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
|
|
10672 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10674 | fi |
|
|
10675 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10676 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
|
|
10677 | else |
|
|
10678 | # Is the header compilable? |
|
|
10679 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10680 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
|
|
10681 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10682 | /* confdefs.h. */ |
|
|
10683 | _ACEOF |
|
|
10684 | cat confdefs.h >>conftest.$ac_ext |
|
|
10685 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10686 | /* end confdefs.h. */ |
|
|
10687 | $ac_includes_default |
|
|
10688 | #include <utmpx.h> |
|
|
10689 | _ACEOF |
|
|
10690 | rm -f conftest.$ac_objext |
|
|
10691 | if { (ac_try="$ac_compile" |
|
|
10692 | case "(($ac_try" in |
|
|
10693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10694 | *) ac_try_echo=$ac_try;; |
|
|
10695 | esac |
|
|
10696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10697 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10698 | ac_status=$? |
|
|
10699 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10700 | rm -f conftest.er1 |
|
|
10701 | cat conftest.err >&5 |
|
|
10702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10703 | (exit $ac_status); } && { |
|
|
10704 | test -z "$ac_cxx_werror_flag" || |
|
|
10705 | test ! -s conftest.err |
|
|
10706 | } && test -s conftest.$ac_objext; then |
|
|
10707 | ac_header_compiler=yes |
|
|
10708 | else |
|
|
10709 | echo "$as_me: failed program was:" >&5 |
|
|
10710 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10711 | |
|
|
10712 | ac_header_compiler=no |
|
|
10713 | fi |
|
|
10714 | |
|
|
10715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10716 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10717 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
10718 | |
|
|
10719 | # Is the header present? |
|
|
10720 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10721 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
|
|
10722 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10723 | /* confdefs.h. */ |
|
|
10724 | _ACEOF |
|
|
10725 | cat confdefs.h >>conftest.$ac_ext |
|
|
10726 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10727 | /* end confdefs.h. */ |
|
|
10728 | #include <utmpx.h> |
|
|
10729 | _ACEOF |
|
|
10730 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
10731 | case "(($ac_try" in |
|
|
10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10733 | *) ac_try_echo=$ac_try;; |
|
|
10734 | esac |
|
|
10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10736 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
10737 | ac_status=$? |
|
|
10738 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10739 | rm -f conftest.er1 |
|
|
10740 | cat conftest.err >&5 |
|
|
10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10742 | (exit $ac_status); } >/dev/null && { |
|
|
10743 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
10744 | test ! -s conftest.err |
|
|
10745 | }; then |
|
|
10746 | ac_header_preproc=yes |
|
|
10747 | else |
|
|
10748 | echo "$as_me: failed program was:" >&5 |
|
|
10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10750 | |
|
|
10751 | ac_header_preproc=no |
|
|
10752 | fi |
|
|
10753 | |
|
|
10754 | rm -f conftest.err conftest.$ac_ext |
|
|
10755 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10756 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
10757 | |
|
|
10758 | # So? What about this header? |
|
|
10759 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10760 | yes:no: ) |
|
|
10761 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10762 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10763 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10764 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10765 | ac_header_preproc=yes |
|
|
10766 | ;; |
|
|
10767 | no:yes:* ) |
|
|
10768 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10769 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10770 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10771 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10772 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10773 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10774 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10775 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10776 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10777 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10778 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10779 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10780 | |
|
|
10781 | ;; |
|
|
10782 | esac |
|
|
10783 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10784 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
|
|
10785 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10787 | else |
|
|
10788 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10789 | fi |
|
|
10790 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10791 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
|
|
10792 | |
|
|
10793 | fi |
|
|
10794 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10795 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10796 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
|
|
10797 | if test "${struct_utmpx+set}" = set; then |
|
|
10798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10799 | else |
|
|
10800 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10801 | /* confdefs.h. */ |
|
|
10802 | _ACEOF |
|
|
10803 | cat confdefs.h >>conftest.$ac_ext |
|
|
10804 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10805 | /* end confdefs.h. */ |
|
|
10806 | #include <sys/types.h> |
|
|
10807 | #include <utmpx.h> |
|
|
10808 | int |
|
|
10809 | main () |
|
|
10810 | { |
|
|
10811 | struct utmpx ut; |
|
|
10812 | ; |
|
|
10813 | return 0; |
|
|
10814 | } |
|
|
10815 | _ACEOF |
|
|
10816 | rm -f conftest.$ac_objext |
|
|
10817 | if { (ac_try="$ac_compile" |
|
|
10818 | case "(($ac_try" in |
|
|
10819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10820 | *) ac_try_echo=$ac_try;; |
|
|
10821 | esac |
|
|
10822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10823 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10824 | ac_status=$? |
|
|
10825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10826 | rm -f conftest.er1 |
|
|
10827 | cat conftest.err >&5 |
|
|
10828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10829 | (exit $ac_status); } && { |
|
|
10830 | test -z "$ac_cxx_werror_flag" || |
|
|
10831 | test ! -s conftest.err |
|
|
10832 | } && test -s conftest.$ac_objext; then |
|
|
10833 | struct_utmpx=yes |
|
|
10834 | else |
|
|
10835 | echo "$as_me: failed program was:" >&5 |
|
|
10836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10837 | |
|
|
10838 | struct_utmpx=no |
|
|
10839 | fi |
|
|
10840 | |
|
|
10841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10842 | fi |
|
|
10843 | { echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
10844 | echo "${ECHO_T}$struct_utmpx" >&6; } |
|
|
10845 | if test x$struct_utmpx = xyes; then |
|
|
10846 | |
|
|
10847 | cat >>confdefs.h <<\_ACEOF |
|
|
10848 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10849 | _ACEOF |
|
|
10850 | |
|
|
10851 | fi |
|
|
10852 | |
|
|
10853 | |
|
|
10854 | { echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10855 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } |
|
|
10856 | if test "${struct_utmpx_host+set}" = set; then |
|
|
10857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10858 | else |
|
|
10859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10860 | /* confdefs.h. */ |
|
|
10861 | _ACEOF |
|
|
10862 | cat confdefs.h >>conftest.$ac_ext |
|
|
10863 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10864 | /* end confdefs.h. */ |
|
|
10865 | #include <sys/types.h> |
|
|
10866 | #include <utmpx.h> |
|
|
10867 | int |
|
|
10868 | main () |
|
|
10869 | { |
|
|
10870 | struct utmpx utx; utx.ut_host; |
|
|
10871 | ; |
|
|
10872 | return 0; |
|
|
10873 | } |
|
|
10874 | _ACEOF |
|
|
10875 | rm -f conftest.$ac_objext |
|
|
10876 | if { (ac_try="$ac_compile" |
|
|
10877 | case "(($ac_try" in |
|
|
10878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10879 | *) ac_try_echo=$ac_try;; |
|
|
10880 | esac |
|
|
10881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10882 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10883 | ac_status=$? |
|
|
10884 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10885 | rm -f conftest.er1 |
|
|
10886 | cat conftest.err >&5 |
|
|
10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10888 | (exit $ac_status); } && { |
|
|
10889 | test -z "$ac_cxx_werror_flag" || |
|
|
10890 | test ! -s conftest.err |
|
|
10891 | } && test -s conftest.$ac_objext; then |
|
|
10892 | struct_utmpx_host=yes |
|
|
10893 | else |
|
|
10894 | echo "$as_me: failed program was:" >&5 |
|
|
10895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10896 | |
|
|
10897 | struct_utmpx_host=no |
|
|
10898 | fi |
|
|
10899 | |
|
|
10900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10901 | fi |
|
|
10902 | { echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
10903 | echo "${ECHO_T}$struct_utmpx_host" >&6; } |
|
|
10904 | if test x$struct_utmpx_host = xyes; then |
|
|
10905 | |
|
|
10906 | cat >>confdefs.h <<\_ACEOF |
|
|
10907 | #define HAVE_UTMPX_HOST 1 |
|
|
10908 | _ACEOF |
|
|
10909 | |
|
|
10910 | fi |
|
|
10911 | |
|
|
10912 | { echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10913 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } |
|
|
10914 | if test "${struct_utmpx_session+set}" = set; then |
|
|
10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10916 | else |
|
|
10917 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10918 | /* confdefs.h. */ |
|
|
10919 | _ACEOF |
|
|
10920 | cat confdefs.h >>conftest.$ac_ext |
|
|
10921 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10922 | /* end confdefs.h. */ |
|
|
10923 | #include <sys/types.h> |
|
|
10924 | #include <utmpx.h> |
|
|
10925 | int |
|
|
10926 | main () |
|
|
10927 | { |
|
|
10928 | struct utmpx utx; utx.ut_session; |
|
|
10929 | ; |
|
|
10930 | return 0; |
|
|
10931 | } |
|
|
10932 | _ACEOF |
|
|
10933 | rm -f conftest.$ac_objext |
|
|
10934 | if { (ac_try="$ac_compile" |
|
|
10935 | case "(($ac_try" in |
|
|
10936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10937 | *) ac_try_echo=$ac_try;; |
|
|
10938 | esac |
|
|
10939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10940 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10941 | ac_status=$? |
|
|
10942 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10943 | rm -f conftest.er1 |
|
|
10944 | cat conftest.err >&5 |
|
|
10945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10946 | (exit $ac_status); } && { |
|
|
10947 | test -z "$ac_cxx_werror_flag" || |
|
|
10948 | test ! -s conftest.err |
|
|
10949 | } && test -s conftest.$ac_objext; then |
|
|
10950 | struct_utmpx_session=yes |
|
|
10951 | else |
|
|
10952 | echo "$as_me: failed program was:" >&5 |
|
|
10953 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10954 | |
|
|
10955 | struct_utmpx_session=no |
|
|
10956 | fi |
|
|
10957 | |
|
|
10958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10959 | fi |
|
|
10960 | { echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
10961 | echo "${ECHO_T}$struct_utmpx_session" >&6; } |
|
|
10962 | if test x$struct_utmpx_session = xyes; then |
|
|
10963 | |
|
|
10964 | cat >>confdefs.h <<\_ACEOF |
|
|
10965 | #define HAVE_UTMPX_SESSION 1 |
|
|
10966 | _ACEOF |
|
|
10967 | |
|
|
10968 | fi |
|
|
10969 | |
|
|
10970 | fi |
|
|
10971 | |
|
|
10972 | |
|
|
10973 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
10974 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
|
|
10975 | if test "${struct_lastlog+set}" = set; then |
|
|
10976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10977 | else |
|
|
10978 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10979 | /* confdefs.h. */ |
|
|
10980 | _ACEOF |
|
|
10981 | cat confdefs.h >>conftest.$ac_ext |
|
|
10982 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10983 | /* end confdefs.h. */ |
|
|
10984 | #include <sys/types.h> |
|
|
10985 | #include <utmp.h> |
|
|
10986 | #ifdef HAVE_LASTLOG_H |
|
|
10987 | #include <lastlog.h> |
|
|
10988 | #endif |
|
|
10989 | |
|
|
10990 | int |
|
|
10991 | main () |
|
|
10992 | { |
|
|
10993 | struct lastlog ll; |
|
|
10994 | ; |
|
|
10995 | return 0; |
|
|
10996 | } |
|
|
10997 | _ACEOF |
|
|
10998 | rm -f conftest.$ac_objext |
|
|
10999 | if { (ac_try="$ac_compile" |
|
|
11000 | case "(($ac_try" in |
|
|
11001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11002 | *) ac_try_echo=$ac_try;; |
|
|
11003 | esac |
|
|
11004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11005 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11006 | ac_status=$? |
|
|
11007 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11008 | rm -f conftest.er1 |
|
|
11009 | cat conftest.err >&5 |
|
|
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11011 | (exit $ac_status); } && { |
|
|
11012 | test -z "$ac_cxx_werror_flag" || |
|
|
11013 | test ! -s conftest.err |
|
|
11014 | } && test -s conftest.$ac_objext; then |
|
|
11015 | struct_lastlog=yes |
|
|
11016 | else |
|
|
11017 | echo "$as_me: failed program was:" >&5 |
|
|
11018 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11019 | |
|
|
11020 | struct_lastlog=no |
|
|
11021 | fi |
|
|
11022 | |
|
|
11023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11024 | fi |
|
|
11025 | { echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
11026 | echo "${ECHO_T}$struct_lastlog" >&6; } |
|
|
11027 | if test x$struct_lastlog = xyes; then |
|
|
11028 | |
|
|
11029 | cat >>confdefs.h <<\_ACEOF |
|
|
11030 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11031 | _ACEOF |
|
|
11032 | |
|
|
11033 | fi |
|
|
11034 | |
|
|
11035 | { echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11036 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } |
|
|
11037 | if test "${struct_lastlogx+set}" = set; then |
|
|
11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11039 | else |
|
|
11040 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11041 | /* confdefs.h. */ |
|
|
11042 | _ACEOF |
|
|
11043 | cat confdefs.h >>conftest.$ac_ext |
|
|
11044 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11045 | /* end confdefs.h. */ |
|
|
11046 | #include <sys/types.h> |
|
|
11047 | #include <utmpx.h> |
|
|
11048 | #ifdef HAVE_LASTLOG_H |
|
|
11049 | #include <lastlog.h> |
|
|
11050 | #endif |
|
|
11051 | |
|
|
11052 | int |
|
|
11053 | main () |
|
|
11054 | { |
|
|
11055 | struct lastlogx ll; |
|
|
11056 | ; |
|
|
11057 | return 0; |
|
|
11058 | } |
|
|
11059 | _ACEOF |
|
|
11060 | rm -f conftest.$ac_objext |
|
|
11061 | if { (ac_try="$ac_compile" |
|
|
11062 | case "(($ac_try" in |
|
|
11063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11064 | *) ac_try_echo=$ac_try;; |
|
|
11065 | esac |
|
|
11066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11067 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11068 | ac_status=$? |
|
|
11069 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11070 | rm -f conftest.er1 |
|
|
11071 | cat conftest.err >&5 |
|
|
11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11073 | (exit $ac_status); } && { |
|
|
11074 | test -z "$ac_cxx_werror_flag" || |
|
|
11075 | test ! -s conftest.err |
|
|
11076 | } && test -s conftest.$ac_objext; then |
|
|
11077 | struct_lastlogx=yes |
|
|
11078 | else |
|
|
11079 | echo "$as_me: failed program was:" >&5 |
|
|
11080 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11081 | |
|
|
11082 | struct_lastlogx=no |
|
|
11083 | fi |
|
|
11084 | |
|
|
11085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11086 | fi |
|
|
11087 | { echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
11088 | echo "${ECHO_T}$struct_lastlogx" >&6; } |
|
|
11089 | if test x$struct_lastlogx = xyes; then |
|
|
11090 | |
|
|
11091 | cat >>confdefs.h <<\_ACEOF |
|
|
11092 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11093 | _ACEOF |
|
|
11094 | |
|
|
11095 | fi |
|
|
11096 | |
|
|
11097 | |
|
|
11098 | { echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11099 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } |
|
|
11100 | if test "${path_utmp+set}" = set; then |
|
|
11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11102 | else |
|
|
11103 | if test "$cross_compiling" = yes; then |
|
|
11104 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
11105 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
11106 | else |
|
|
11107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11108 | /* confdefs.h. */ |
|
|
11109 | _ACEOF |
|
|
11110 | cat confdefs.h >>conftest.$ac_ext |
|
|
11111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11112 | /* end confdefs.h. */ |
|
|
11113 | #include <stdio.h> |
|
|
11114 | #include <stdlib.h> |
|
|
11115 | #include <sys/types.h> |
|
|
11116 | #include <utmp.h> |
|
|
11117 | #include <errno.h> |
|
|
11118 | main() |
|
|
11119 | { |
|
|
11120 | char **u, *utmplist[] = { |
|
|
11121 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11122 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11123 | if (!f) exit(1); |
|
|
11124 | #ifdef UTMP_FILE |
|
|
11125 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11126 | exit(0); |
|
|
11127 | #endif |
|
|
11128 | #ifdef _PATH_UTMP |
|
|
11129 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11130 | exit(0); |
|
|
11131 | #endif |
|
|
11132 | for (u = utmplist; *u; u++) { |
|
|
11133 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11134 | fprintf(f, "%s\n", *u); |
|
|
11135 | exit(0); |
|
|
11136 | } |
|
|
11137 | } |
|
|
11138 | exit(0); |
|
|
11139 | } |
|
|
11140 | _ACEOF |
|
|
11141 | rm -f conftest$ac_exeext |
|
|
11142 | if { (ac_try="$ac_link" |
|
|
11143 | case "(($ac_try" in |
|
|
11144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11145 | *) ac_try_echo=$ac_try;; |
|
|
11146 | esac |
|
|
11147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11148 | (eval "$ac_link") 2>&5 |
|
|
11149 | ac_status=$? |
|
|
11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11152 | { (case "(($ac_try" in |
|
|
11153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11154 | *) ac_try_echo=$ac_try;; |
|
|
11155 | esac |
|
|
11156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11157 | (eval "$ac_try") 2>&5 |
|
|
11158 | ac_status=$? |
|
|
11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11160 | (exit $ac_status); }; }; then |
|
|
11161 | path_utmp=`cat conftestval` |
|
|
11162 | else |
|
|
11163 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11164 | echo "$as_me: failed program was:" >&5 |
|
|
11165 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11166 | |
|
|
11167 | ( exit $ac_status ) |
|
|
11168 | path_utmp= |
|
|
11169 | fi |
|
|
11170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11171 | fi |
|
|
11172 | |
|
|
11173 | |
|
|
11174 | fi |
|
|
11175 | { echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
11176 | echo "${ECHO_T}$path_utmp" >&6; } |
|
|
11177 | if test x$path_utmp != x; then |
|
|
11178 | |
|
|
11179 | cat >>confdefs.h <<_ACEOF |
|
|
11180 | #define UTMP_FILE "$path_utmp" |
|
|
11181 | _ACEOF |
|
|
11182 | |
|
|
11183 | fi |
|
|
11184 | |
|
|
11185 | |
|
|
11186 | { echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11187 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } |
|
|
11188 | if test "${path_utmpx+set}" = set; then |
|
|
11189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11190 | else |
|
|
11191 | if test "$cross_compiling" = yes; then |
|
|
11192 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
11193 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
11194 | else |
|
|
11195 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11196 | /* confdefs.h. */ |
|
|
11197 | _ACEOF |
|
|
11198 | cat confdefs.h >>conftest.$ac_ext |
|
|
11199 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11200 | /* end confdefs.h. */ |
|
|
11201 | #include <stdio.h> |
|
|
11202 | #include <stdlib.h> |
|
|
11203 | #include <sys/types.h> |
|
|
11204 | #include <utmpx.h> |
|
|
11205 | #include <errno.h> |
|
|
11206 | #include <sys/stat.h> |
|
|
11207 | #ifdef HAVE_STRING_H |
|
|
11208 | #include <string.h> |
|
|
11209 | #endif |
|
|
11210 | main() |
|
|
11211 | { |
|
|
11212 | char **u, *p, *utmplist[] = { |
|
|
11213 | #ifdef UTMPX_FILE |
|
|
11214 | UTMPX_FILE, |
|
|
11215 | #endif |
|
|
11216 | #ifdef _PATH_UTMPX |
|
|
11217 | _PATH_UTMPX, |
|
|
11218 | #endif |
|
|
11219 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11220 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11221 | struct stat statu, statux; |
|
|
11222 | if (!f) exit(1); |
|
|
11223 | for (u = utmplist; *u; u++) { |
|
|
11224 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11225 | if (stat(*u, &statux) < 0) |
|
|
11226 | continue; |
|
|
11227 | p = strdup(*u); |
|
|
11228 | p[strlen(p) - 1] = '\0'; |
|
|
11229 | if (stat(p, &statu) >= 0 |
|
|
11230 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11231 | continue; |
|
|
11232 | fprintf(f, "%s\n", *u); |
|
|
11233 | exit(0); |
|
|
11234 | } |
|
|
11235 | } |
|
|
11236 | exit(0); |
|
|
11237 | } |
|
|
11238 | _ACEOF |
|
|
11239 | rm -f conftest$ac_exeext |
|
|
11240 | if { (ac_try="$ac_link" |
|
|
11241 | case "(($ac_try" in |
|
|
11242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11243 | *) ac_try_echo=$ac_try;; |
|
|
11244 | esac |
|
|
11245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11246 | (eval "$ac_link") 2>&5 |
|
|
11247 | ac_status=$? |
|
|
11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11250 | { (case "(($ac_try" in |
|
|
11251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11252 | *) ac_try_echo=$ac_try;; |
|
|
11253 | esac |
|
|
11254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11255 | (eval "$ac_try") 2>&5 |
|
|
11256 | ac_status=$? |
|
|
11257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11258 | (exit $ac_status); }; }; then |
|
|
11259 | path_utmpx=`cat conftestval` |
|
|
11260 | else |
|
|
11261 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11262 | echo "$as_me: failed program was:" >&5 |
|
|
11263 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11264 | |
|
|
11265 | ( exit $ac_status ) |
|
|
11266 | path_utmpx= |
|
|
11267 | fi |
|
|
11268 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11269 | fi |
|
|
11270 | |
|
|
11271 | |
|
|
11272 | fi |
|
|
11273 | { echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
11274 | echo "${ECHO_T}$path_utmpx" >&6; } |
|
|
11275 | if test x$path_utmpx != x; then |
|
|
11276 | |
|
|
11277 | cat >>confdefs.h <<_ACEOF |
|
|
11278 | #define UTMPX_FILE "$path_utmpx" |
|
|
11279 | _ACEOF |
|
|
11280 | |
|
|
11281 | fi |
|
|
11282 | |
|
|
11283 | |
|
|
11284 | { echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11285 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; } |
|
|
11286 | if test "${path_wtmp+set}" = set; then |
|
|
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11288 | else |
|
|
11289 | if test "$cross_compiling" = yes; then |
|
|
11290 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
11291 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
11292 | else |
|
|
11293 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11294 | /* confdefs.h. */ |
|
|
11295 | _ACEOF |
|
|
11296 | cat confdefs.h >>conftest.$ac_ext |
|
|
11297 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11298 | /* end confdefs.h. */ |
|
|
11299 | #include <stdio.h> |
|
|
11300 | #include <stdlib.h> |
|
|
11301 | #include <sys/types.h> |
|
|
11302 | #ifdef HAVE_UTMP_H |
|
|
11303 | #include <utmp.h> |
|
|
11304 | #endif |
|
|
11305 | #include <errno.h> |
|
|
11306 | main() |
|
|
11307 | { |
|
|
11308 | char **w, *wtmplist[] = { |
|
|
11309 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11310 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11311 | if (!f) exit(1); |
|
|
11312 | #ifdef WTMP_FILE |
|
|
11313 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11314 | exit(0); |
|
|
11315 | #endif |
|
|
11316 | #ifdef _PATH_WTMP |
|
|
11317 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11318 | exit(0); |
|
|
11319 | #endif |
|
|
11320 | for (w = wtmplist; *w; w++) { |
|
|
11321 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11322 | fprintf(f, "%s\n", *w); |
|
|
11323 | exit(0); |
|
|
11324 | } |
|
|
11325 | } |
|
|
11326 | exit(0); |
|
|
11327 | } |
|
|
11328 | _ACEOF |
|
|
11329 | rm -f conftest$ac_exeext |
|
|
11330 | if { (ac_try="$ac_link" |
|
|
11331 | case "(($ac_try" in |
|
|
11332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11333 | *) ac_try_echo=$ac_try;; |
|
|
11334 | esac |
|
|
11335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11336 | (eval "$ac_link") 2>&5 |
|
|
11337 | ac_status=$? |
|
|
11338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11340 | { (case "(($ac_try" in |
|
|
11341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11342 | *) ac_try_echo=$ac_try;; |
|
|
11343 | esac |
|
|
11344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11345 | (eval "$ac_try") 2>&5 |
|
|
11346 | ac_status=$? |
|
|
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11348 | (exit $ac_status); }; }; then |
|
|
11349 | path_wtmp=`cat conftestval` |
|
|
11350 | else |
|
|
11351 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11352 | echo "$as_me: failed program was:" >&5 |
|
|
11353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11354 | |
|
|
11355 | ( exit $ac_status ) |
|
|
11356 | path_wtmp= |
|
|
11357 | fi |
|
|
11358 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11359 | fi |
|
|
11360 | |
|
|
11361 | |
|
|
11362 | fi |
|
|
11363 | { echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
11364 | echo "${ECHO_T}$path_wtmp" >&6; } |
|
|
11365 | if test x$path_wtmp != x; then |
|
|
11366 | |
|
|
11367 | cat >>confdefs.h <<_ACEOF |
|
|
11368 | #define WTMP_FILE "$path_wtmp" |
|
|
11369 | _ACEOF |
|
|
11370 | |
|
|
11371 | fi |
|
|
11372 | |
|
|
11373 | { echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11374 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } |
|
|
11375 | if test "${path_wtmpx+set}" = set; then |
|
|
11376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11377 | else |
|
|
11378 | if test "$cross_compiling" = yes; then |
|
|
11379 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
11380 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
11381 | else |
|
|
11382 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11383 | /* confdefs.h. */ |
|
|
11384 | _ACEOF |
|
|
11385 | cat confdefs.h >>conftest.$ac_ext |
|
|
11386 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11387 | /* end confdefs.h. */ |
|
|
11388 | #include <stdio.h> |
|
|
11389 | #include <stdlib.h> |
|
|
11390 | #ifdef HAVE_UTMPX_H |
|
|
11391 | #include <utmpx.h> |
|
|
11392 | #endif |
|
|
11393 | #include <errno.h> |
|
|
11394 | main() |
|
|
11395 | { |
|
|
11396 | char **w, *wtmplist[] = { |
|
|
11397 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11398 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11399 | if (!f) exit(1); |
|
|
11400 | #ifdef WTMPX_FILE |
|
|
11401 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11402 | exit(0); |
|
|
11403 | #endif |
|
|
11404 | #ifdef _PATH_WTMPX |
|
|
11405 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11406 | exit(0); |
|
|
11407 | #endif |
|
|
11408 | for (w = wtmplist; *w; w++) { |
|
|
11409 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11410 | fprintf(f, "%s\n", *w); |
|
|
11411 | exit(0); |
|
|
11412 | } |
|
|
11413 | } |
|
|
11414 | exit(0); |
|
|
11415 | } |
|
|
11416 | _ACEOF |
|
|
11417 | rm -f conftest$ac_exeext |
|
|
11418 | if { (ac_try="$ac_link" |
|
|
11419 | case "(($ac_try" in |
|
|
11420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11421 | *) ac_try_echo=$ac_try;; |
|
|
11422 | esac |
|
|
11423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11424 | (eval "$ac_link") 2>&5 |
|
|
11425 | ac_status=$? |
|
|
11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11428 | { (case "(($ac_try" in |
|
|
11429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11430 | *) ac_try_echo=$ac_try;; |
|
|
11431 | esac |
|
|
11432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11433 | (eval "$ac_try") 2>&5 |
|
|
11434 | ac_status=$? |
|
|
11435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11436 | (exit $ac_status); }; }; then |
|
|
11437 | path_wtmpx=`cat conftestval` |
|
|
11438 | else |
|
|
11439 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11440 | echo "$as_me: failed program was:" >&5 |
|
|
11441 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11442 | |
|
|
11443 | ( exit $ac_status ) |
|
|
11444 | path_wtmpx= |
|
|
11445 | fi |
|
|
11446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11447 | fi |
|
|
11448 | |
|
|
11449 | |
|
|
11450 | fi |
|
|
11451 | { echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
11452 | echo "${ECHO_T}$path_wtmpx" >&6; } |
|
|
11453 | if test x$path_wtmpx != x; then |
|
|
11454 | |
|
|
11455 | cat >>confdefs.h <<_ACEOF |
|
|
11456 | #define WTMPX_FILE "$path_wtmpx" |
|
|
11457 | _ACEOF |
|
|
11458 | |
|
|
11459 | fi |
|
|
11460 | |
|
|
11461 | { echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11462 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } |
|
|
11463 | if test "${path_lastlog+set}" = set; then |
|
|
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11465 | else |
|
|
11466 | if test "$cross_compiling" = yes; then |
|
|
11467 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
11468 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
11469 | else |
|
|
11470 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11471 | /* confdefs.h. */ |
|
|
11472 | _ACEOF |
|
|
11473 | cat confdefs.h >>conftest.$ac_ext |
|
|
11474 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11475 | /* end confdefs.h. */ |
|
|
11476 | #include <stdio.h> |
|
|
11477 | #include <stdlib.h> |
|
|
11478 | #include <sys/types.h> |
|
|
11479 | #ifdef HAVE_UTMPX_H |
|
|
11480 | #include <utmpx.h> |
|
|
11481 | #elif defined(HAVE_UTMP_H) |
|
|
11482 | #include <utmp.h> |
|
|
11483 | #endif |
|
|
11484 | #ifdef HAVE_LASTLOG_H |
|
|
11485 | #include <lastlog.h> |
|
|
11486 | #endif |
|
|
11487 | #include <errno.h> |
|
|
11488 | main() |
|
|
11489 | { |
|
|
11490 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11491 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11492 | if (!f) exit(1); |
|
|
11493 | #ifdef LASTLOG_FILE |
|
|
11494 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11495 | exit(0); |
|
|
11496 | #endif |
|
|
11497 | #ifdef _PATH_LASTLOG |
|
|
11498 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11499 | exit(0); |
|
|
11500 | #endif |
|
|
11501 | for (w = lastloglist; *w; w++) { |
|
|
11502 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11503 | fprintf(f, "%s\n", *w); |
|
|
11504 | exit(0); |
|
|
11505 | } |
|
|
11506 | } |
|
|
11507 | exit(0); |
|
|
11508 | } |
|
|
11509 | _ACEOF |
|
|
11510 | rm -f conftest$ac_exeext |
|
|
11511 | if { (ac_try="$ac_link" |
|
|
11512 | case "(($ac_try" in |
|
|
11513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11514 | *) ac_try_echo=$ac_try;; |
|
|
11515 | esac |
|
|
11516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11517 | (eval "$ac_link") 2>&5 |
|
|
11518 | ac_status=$? |
|
|
11519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11521 | { (case "(($ac_try" in |
|
|
11522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11523 | *) ac_try_echo=$ac_try;; |
|
|
11524 | esac |
|
|
11525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11526 | (eval "$ac_try") 2>&5 |
|
|
11527 | ac_status=$? |
|
|
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11529 | (exit $ac_status); }; }; then |
|
|
11530 | path_lastlog=`cat conftestval` |
|
|
11531 | else |
|
|
11532 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11533 | echo "$as_me: failed program was:" >&5 |
|
|
11534 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11535 | |
|
|
11536 | ( exit $ac_status ) |
|
|
11537 | path_lastlog= |
|
|
11538 | fi |
|
|
11539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11540 | fi |
|
|
11541 | |
|
|
11542 | |
|
|
11543 | fi |
|
|
11544 | { echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
11545 | echo "${ECHO_T}$path_lastlog" >&6; } |
|
|
11546 | if test x$path_lastlog != x; then |
|
|
11547 | |
|
|
11548 | cat >>confdefs.h <<_ACEOF |
|
|
11549 | #define LASTLOG_FILE "$path_lastlog" |
|
|
11550 | _ACEOF |
|
|
11551 | |
|
|
11552 | if test -d "$path_lastlog"; then |
|
|
11553 | |
|
|
11554 | cat >>confdefs.h <<\_ACEOF |
|
|
11555 | #define LASTLOG_IS_DIR 1 |
|
|
11556 | _ACEOF |
|
|
11557 | |
|
|
11558 | fi |
|
|
11559 | fi |
|
|
11560 | |
|
|
11561 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11562 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
|
|
11563 | if test "${path_lastlogx+set}" = set; then |
|
|
11564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11565 | else |
|
|
11566 | if test "$cross_compiling" = yes; then |
|
|
11567 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
11568 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11569 | else |
|
|
11570 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11571 | /* confdefs.h. */ |
|
|
11572 | _ACEOF |
|
|
11573 | cat confdefs.h >>conftest.$ac_ext |
|
|
11574 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11575 | /* end confdefs.h. */ |
|
|
11576 | #include <stdio.h> |
|
|
11577 | #include <stdlib.h> |
|
|
11578 | #ifdef HAVE_UTMPX_H |
|
|
11579 | #include <utmpx.h> |
|
|
11580 | #endif |
|
|
11581 | #include <errno.h> |
|
|
11582 | main() |
|
|
11583 | { |
|
|
11584 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11585 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11586 | if (!f) exit(1); |
|
|
11587 | #ifdef LASTLOGX_FILE |
|
|
11588 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11589 | exit(0); |
|
|
11590 | #endif |
|
|
11591 | #ifdef _PATH_LASTLOGX |
|
|
11592 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11593 | exit(0); |
|
|
11594 | #endif |
|
|
11595 | for (w = wtmplist; *w; w++) { |
|
|
11596 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11597 | fprintf(f, "%s\n", *w); |
|
|
11598 | exit(0); |
|
|
11599 | } |
|
|
11600 | } |
|
|
11601 | exit(0); |
|
|
11602 | } |
|
|
11603 | _ACEOF |
|
|
11604 | rm -f conftest$ac_exeext |
|
|
11605 | if { (ac_try="$ac_link" |
|
|
11606 | case "(($ac_try" in |
|
|
11607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11608 | *) ac_try_echo=$ac_try;; |
|
|
11609 | esac |
|
|
11610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11611 | (eval "$ac_link") 2>&5 |
|
|
11612 | ac_status=$? |
|
|
11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11614 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11615 | { (case "(($ac_try" in |
|
|
11616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11617 | *) ac_try_echo=$ac_try;; |
|
|
11618 | esac |
|
|
11619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11620 | (eval "$ac_try") 2>&5 |
|
|
11621 | ac_status=$? |
|
|
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11623 | (exit $ac_status); }; }; then |
|
|
11624 | path_lastlogx=`cat conftestval` |
|
|
11625 | else |
|
|
11626 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11627 | echo "$as_me: failed program was:" >&5 |
|
|
11628 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11629 | |
|
|
11630 | ( exit $ac_status ) |
|
|
11631 | path_lastlogx= |
|
|
11632 | fi |
|
|
11633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11634 | fi |
|
|
11635 | |
|
|
11636 | |
|
|
11637 | fi |
|
|
11638 | { echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
11639 | echo "${ECHO_T}$path_lastlogx" >&6; } |
|
|
11640 | if test x$path_lastlogx != x; then |
|
|
11641 | |
|
|
11642 | cat >>confdefs.h <<_ACEOF |
|
|
11643 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
11644 | _ACEOF |
|
|
11645 | |
|
|
11646 | fi |
|
|
11647 | |
|
|
11648 | |
|
|
11649 | |
|
|
11650 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11651 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11652 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11654 | else |
|
|
11655 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11656 | do |
|
|
11657 | if test -f "$ttys_file" ; then |
|
|
11658 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11659 | break |
|
|
11660 | fi |
|
|
11661 | done |
|
|
11662 | |
|
|
11663 | fi |
|
|
11664 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11665 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11666 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11667 | |
|
|
11668 | cat >>confdefs.h <<_ACEOF |
|
|
11669 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11670 | _ACEOF |
|
|
11671 | |
|
|
11672 | fi |
|
|
11673 | |
|
|
11674 | |
|
|
11675 | ac_save_LIBS=$LIBS |
|
|
11676 | ac_save_CFLAGS=$CFLAGS |
|
|
11677 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
11678 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
11679 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
|
|
11680 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
|
|
11681 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
|
|
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11683 | else |
|
|
11684 | if test "$cross_compiling" = yes; then |
|
|
11685 | : |
|
|
11686 | else |
|
|
11687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11688 | /* confdefs.h. */ |
|
|
11689 | _ACEOF |
|
|
11690 | cat confdefs.h >>conftest.$ac_ext |
|
|
11691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11692 | /* end confdefs.h. */ |
|
|
11693 | #include <X11/Xlib.h> |
|
|
11694 | #include <stdlib.h> |
|
|
11695 | main() { |
|
|
11696 | char *p; |
|
|
11697 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
11698 | exit (XSupportsLocale() ? 0 : 1); |
|
|
11699 | else |
|
|
11700 | exit (1);} |
|
|
11701 | _ACEOF |
|
|
11702 | rm -f conftest$ac_exeext |
|
|
11703 | if { (ac_try="$ac_link" |
|
|
11704 | case "(($ac_try" in |
|
|
11705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11706 | *) ac_try_echo=$ac_try;; |
|
|
11707 | esac |
|
|
11708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11709 | (eval "$ac_link") 2>&5 |
|
|
11710 | ac_status=$? |
|
|
11711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11713 | { (case "(($ac_try" in |
|
|
11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11715 | *) ac_try_echo=$ac_try;; |
|
|
11716 | esac |
|
|
11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11718 | (eval "$ac_try") 2>&5 |
|
|
11719 | ac_status=$? |
|
|
11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11721 | (exit $ac_status); }; }; then |
|
|
11722 | rxvt_cv_func_xlocale=yes |
|
|
11723 | else |
|
|
11724 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11725 | echo "$as_me: failed program was:" >&5 |
|
|
11726 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11727 | |
|
|
11728 | ( exit $ac_status ) |
|
|
11729 | rxvt_cv_func_xlocale=no |
|
|
11730 | fi |
|
|
11731 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11732 | fi |
|
|
11733 | |
|
|
11734 | |
|
|
11735 | fi |
|
|
11736 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
|
|
11737 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
|
|
11738 | if test x$support_xim = xyes; then |
|
|
11739 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
11740 | |
|
|
11741 | cat >>confdefs.h <<\_ACEOF |
|
|
11742 | #define USE_XIM 1 |
|
|
11743 | _ACEOF |
|
|
11744 | |
|
|
11745 | fi |
|
|
11746 | fi |
|
|
11747 | |
|
|
11748 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
|
|
11749 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
|
|
11750 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
|
|
11751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11752 | else |
|
|
11753 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11754 | /* confdefs.h. */ |
|
|
11755 | _ACEOF |
|
|
11756 | cat confdefs.h >>conftest.$ac_ext |
|
|
11757 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11758 | /* end confdefs.h. */ |
|
|
11759 | #define X_LOCALE 1 |
|
|
11760 | #include <X11/Xlocale.h> |
|
|
11761 | int |
|
|
11762 | main () |
|
|
11763 | { |
|
|
11764 | setlocale(LC_CTYPE, ""); |
|
|
11765 | ; |
|
|
11766 | return 0; |
|
|
11767 | } |
|
|
11768 | _ACEOF |
|
|
11769 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11770 | if { (ac_try="$ac_link" |
|
|
11771 | case "(($ac_try" in |
|
|
11772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11773 | *) ac_try_echo=$ac_try;; |
|
|
11774 | esac |
|
|
11775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11776 | (eval "$ac_link") 2>conftest.er1 |
|
|
11777 | ac_status=$? |
|
|
11778 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11779 | rm -f conftest.er1 |
|
|
11780 | cat conftest.err >&5 |
|
|
11781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11782 | (exit $ac_status); } && { |
|
|
11783 | test -z "$ac_cxx_werror_flag" || |
|
|
11784 | test ! -s conftest.err |
|
|
11785 | } && test -s conftest$ac_exeext && |
|
|
11786 | $as_test_x conftest$ac_exeext; then |
|
|
11787 | rxvt_cv_func_xsetlocale=yes |
|
|
11788 | else |
|
|
11789 | echo "$as_me: failed program was:" >&5 |
|
|
11790 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11791 | |
|
|
11792 | rxvt_cv_func_xsetlocale=no |
|
|
11793 | fi |
|
|
11794 | |
|
|
11795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
11796 | conftest$ac_exeext conftest.$ac_ext |
|
|
11797 | fi |
|
|
11798 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
11799 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } |
|
|
11800 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
11801 | |
|
|
11802 | cat >>confdefs.h <<\_ACEOF |
|
|
11803 | #define HAVE_XSETLOCALE 1 |
|
|
11804 | _ACEOF |
|
|
11805 | |
|
|
11806 | fi |
|
|
11807 | LIBS=$ac_save_LIBS |
|
|
11808 | CFLAGS=$ac_save_CFLAGS |
|
|
11809 | |
|
|
11810 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
|
|
11811 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
|
|
11812 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
|
|
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11814 | else |
|
|
11815 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11816 | /* confdefs.h. */ |
|
|
11817 | _ACEOF |
|
|
11818 | cat confdefs.h >>conftest.$ac_ext |
|
|
11819 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11820 | /* end confdefs.h. */ |
|
|
11821 | #include <clocale> |
|
|
11822 | int |
|
|
11823 | main () |
|
|
11824 | { |
|
|
11825 | setlocale(LC_CTYPE, ""); |
|
|
11826 | ; |
|
|
11827 | return 0; |
|
|
11828 | } |
|
|
11829 | _ACEOF |
|
|
11830 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11831 | if { (ac_try="$ac_link" |
|
|
11832 | case "(($ac_try" in |
|
|
11833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11834 | *) ac_try_echo=$ac_try;; |
|
|
11835 | esac |
|
|
11836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11837 | (eval "$ac_link") 2>conftest.er1 |
|
|
11838 | ac_status=$? |
|
|
11839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11840 | rm -f conftest.er1 |
|
|
11841 | cat conftest.err >&5 |
|
|
11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11843 | (exit $ac_status); } && { |
|
|
11844 | test -z "$ac_cxx_werror_flag" || |
|
|
11845 | test ! -s conftest.err |
|
|
11846 | } && test -s conftest$ac_exeext && |
|
|
11847 | $as_test_x conftest$ac_exeext; then |
|
|
11848 | rxvt_cv_func_setlocale=yes |
|
|
11849 | else |
|
|
11850 | echo "$as_me: failed program was:" >&5 |
|
|
11851 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11852 | |
|
|
11853 | rxvt_cv_func_setlocale=no |
|
|
11854 | fi |
|
|
11855 | |
|
|
11856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
11857 | conftest$ac_exeext conftest.$ac_ext |
|
|
11858 | fi |
|
|
11859 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
|
|
11860 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } |
|
|
11861 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
11862 | |
|
|
11863 | cat >>confdefs.h <<\_ACEOF |
|
|
11864 | #define HAVE_SETLOCALE 1 |
|
|
11865 | _ACEOF |
|
|
11866 | |
|
|
11867 | fi |
|
|
11868 | |
|
|
11869 | { echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
|
|
11870 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } |
|
|
11871 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
|
|
11872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11873 | else |
|
|
11874 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11875 | /* confdefs.h. */ |
|
|
11876 | _ACEOF |
|
|
11877 | cat confdefs.h >>conftest.$ac_ext |
|
|
11878 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11879 | /* end confdefs.h. */ |
|
|
11880 | #include <langinfo.h> |
|
|
11881 | int |
|
|
11882 | main () |
|
|
11883 | { |
|
|
11884 | nl_langinfo(CODESET); |
|
|
11885 | ; |
|
|
11886 | return 0; |
|
|
11887 | } |
|
|
11888 | _ACEOF |
|
|
11889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11890 | if { (ac_try="$ac_link" |
|
|
11891 | case "(($ac_try" in |
|
|
11892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11893 | *) ac_try_echo=$ac_try;; |
|
|
11894 | esac |
|
|
11895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11896 | (eval "$ac_link") 2>conftest.er1 |
|
|
11897 | ac_status=$? |
|
|
11898 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11899 | rm -f conftest.er1 |
|
|
11900 | cat conftest.err >&5 |
|
|
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11902 | (exit $ac_status); } && { |
|
|
11903 | test -z "$ac_cxx_werror_flag" || |
|
|
11904 | test ! -s conftest.err |
|
|
11905 | } && test -s conftest$ac_exeext && |
|
|
11906 | $as_test_x conftest$ac_exeext; then |
|
|
11907 | rxvt_cv_func_nl_langinfo=yes |
|
|
11908 | else |
|
|
11909 | echo "$as_me: failed program was:" >&5 |
|
|
11910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11911 | |
|
|
11912 | rxvt_cv_func_nl_langinfo=no |
|
|
11913 | fi |
|
|
11914 | |
|
|
11915 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
11916 | conftest$ac_exeext conftest.$ac_ext |
|
|
11917 | fi |
|
|
11918 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
11919 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
11920 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
11921 | |
|
|
11922 | cat >>confdefs.h <<\_ACEOF |
|
|
11923 | #define HAVE_NL_LANGINFO 1 |
|
|
11924 | _ACEOF |
|
|
11925 | |
|
|
11926 | fi |
|
|
11927 | |
|
|
11928 | |
|
|
11929 | { echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11930 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } |
|
|
11931 | if test "${can_pass_fds+set}" = set; then |
|
|
11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11933 | else |
|
|
11934 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11935 | /* confdefs.h. */ |
|
|
11936 | _ACEOF |
|
|
11937 | cat confdefs.h >>conftest.$ac_ext |
|
|
11938 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11939 | /* end confdefs.h. */ |
|
|
11940 | |
|
|
11941 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
11942 | #include <sys/types.h> |
|
|
11943 | #include <sys/socket.h> |
|
|
11944 | #include <sys/uio.h> |
|
|
11945 | |
|
|
11946 | int |
|
|
11947 | main () |
|
|
11948 | { |
|
|
11949 | |
|
|
11950 | { |
|
|
11951 | msghdr msg; |
|
|
11952 | iovec iov; |
|
|
11953 | char buf [100]; |
|
|
11954 | char data = 0; |
|
|
11955 | |
|
|
11956 | iov.iov_base = &data; |
|
|
11957 | iov.iov_len = 1; |
|
|
11958 | |
|
|
11959 | msg.msg_iov = &iov; |
|
|
11960 | msg.msg_iovlen = 1; |
|
|
11961 | msg.msg_control = buf; |
|
|
11962 | msg.msg_controllen = sizeof buf; |
|
|
11963 | |
|
|
11964 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11965 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11966 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11967 | cmsg->cmsg_len = 100; |
|
|
11968 | |
|
|
11969 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11970 | |
|
|
11971 | return sendmsg (3, &msg, 0); |
|
|
11972 | } |
|
|
11973 | |
|
|
11974 | ; |
|
|
11975 | return 0; |
|
|
11976 | } |
|
|
11977 | _ACEOF |
|
|
11978 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11979 | if { (ac_try="$ac_link" |
|
|
11980 | case "(($ac_try" in |
|
|
11981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11982 | *) ac_try_echo=$ac_try;; |
|
|
11983 | esac |
|
|
11984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11985 | (eval "$ac_link") 2>conftest.er1 |
|
|
11986 | ac_status=$? |
|
|
11987 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11988 | rm -f conftest.er1 |
|
|
11989 | cat conftest.err >&5 |
|
|
11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11991 | (exit $ac_status); } && { |
|
|
11992 | test -z "$ac_cxx_werror_flag" || |
|
|
11993 | test ! -s conftest.err |
|
|
11994 | } && test -s conftest$ac_exeext && |
|
|
11995 | $as_test_x conftest$ac_exeext; then |
|
|
11996 | can_pass_fds=yes |
|
|
11997 | else |
|
|
11998 | echo "$as_me: failed program was:" >&5 |
|
|
11999 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12000 | |
|
|
12001 | can_pass_fds=no |
|
|
12002 | fi |
|
|
12003 | |
|
|
12004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12005 | conftest$ac_exeext conftest.$ac_ext |
|
|
12006 | fi |
|
|
12007 | { echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
12008 | echo "${ECHO_T}$can_pass_fds" >&6; } |
|
|
12009 | if test x$can_pass_fds = xyes; then |
|
|
12010 | |
|
|
12011 | cat >>confdefs.h <<\_ACEOF |
|
|
12012 | #define HAVE_UNIX_FDPASS 1 |
|
|
12013 | _ACEOF |
|
|
12014 | |
|
|
12015 | else |
|
|
12016 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
12017 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
12018 | { (exit 1); exit 1; }; } |
|
|
12019 | fi |
|
|
12020 | |
|
|
12021 | |
|
|
12022 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12023 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12024 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12026 | else |
|
|
12027 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12028 | |
|
|
12029 | #include <X11/Xlib.h> |
|
|
12030 | |
|
|
12031 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12032 | |
|
|
12033 | void f() { |
|
|
12034 | XIMCallback cb; |
|
|
12035 | cb.callback = im_destroy_cb; |
|
|
12036 | } |
|
|
12037 | |
|
|
12038 | _ACEOF |
|
|
12039 | rm -f conftest.$ac_objext |
|
|
12040 | if { (ac_try="$ac_compile" |
|
|
12041 | case "(($ac_try" in |
|
|
12042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12043 | *) ac_try_echo=$ac_try;; |
|
|
12044 | esac |
|
|
12045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12046 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12047 | ac_status=$? |
|
|
12048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12049 | rm -f conftest.er1 |
|
|
12050 | cat conftest.err >&5 |
|
|
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12052 | (exit $ac_status); } && { |
|
|
12053 | test -z "$ac_cxx_werror_flag" || |
|
|
12054 | test ! -s conftest.err |
|
|
12055 | } && test -s conftest.$ac_objext; then |
|
|
12056 | rxvt_broken_ximcb=yes |
|
|
12057 | else |
|
|
12058 | echo "$as_me: failed program was:" >&5 |
|
|
12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12060 | |
|
|
12061 | rxvt_broken_ximcb=no |
|
|
12062 | fi |
|
|
12063 | |
|
|
12064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12065 | fi |
|
|
12066 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12067 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12068 | |
|
|
12069 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<\_ACEOF |
|
|
12072 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | fi |
|
|
12076 | |
|
|
12077 | |
|
|
12078 | |
|
|
12079 | |
|
|
12080 | |
|
|
12081 | |
|
|
12082 | |
|
|
12083 | for ac_header in \ |
|
|
12084 | pty.h \ |
|
|
12085 | util.h \ |
|
|
12086 | libutil.h \ |
|
|
12087 | sys/ioctl.h \ |
|
|
12088 | sys/stropts.h \ |
|
|
12089 | |
|
|
12090 | do |
|
|
12091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12092 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12093 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
12095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12097 | fi |
|
|
12098 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12100 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12101 | else |
|
|
12102 | # Is the header compilable? |
|
|
12103 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
12105 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12106 | /* confdefs.h. */ |
|
|
12107 | _ACEOF |
|
|
12108 | cat confdefs.h >>conftest.$ac_ext |
|
|
12109 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12110 | /* end confdefs.h. */ |
|
|
12111 | $ac_includes_default |
|
|
12112 | #include <$ac_header> |
|
|
12113 | _ACEOF |
|
|
12114 | rm -f conftest.$ac_objext |
|
|
12115 | if { (ac_try="$ac_compile" |
|
|
12116 | case "(($ac_try" in |
|
|
12117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12118 | *) ac_try_echo=$ac_try;; |
|
|
12119 | esac |
|
|
12120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12121 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12122 | ac_status=$? |
|
|
12123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12124 | rm -f conftest.er1 |
|
|
12125 | cat conftest.err >&5 |
|
|
12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12127 | (exit $ac_status); } && { |
|
|
12128 | test -z "$ac_cxx_werror_flag" || |
|
|
12129 | test ! -s conftest.err |
|
|
12130 | } && test -s conftest.$ac_objext; then |
|
|
12131 | ac_header_compiler=yes |
|
|
12132 | else |
|
|
12133 | echo "$as_me: failed program was:" >&5 |
|
|
12134 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12135 | |
|
|
12136 | ac_header_compiler=no |
|
|
12137 | fi |
|
|
12138 | |
|
|
12139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12140 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12141 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
12142 | |
|
|
12143 | # Is the header present? |
|
|
12144 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12145 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
12146 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12147 | /* confdefs.h. */ |
|
|
12148 | _ACEOF |
|
|
12149 | cat confdefs.h >>conftest.$ac_ext |
|
|
12150 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12151 | /* end confdefs.h. */ |
|
|
12152 | #include <$ac_header> |
|
|
12153 | _ACEOF |
|
|
12154 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
12155 | case "(($ac_try" in |
|
|
12156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12157 | *) ac_try_echo=$ac_try;; |
|
|
12158 | esac |
|
|
12159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12160 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
12161 | ac_status=$? |
|
|
12162 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12163 | rm -f conftest.er1 |
|
|
12164 | cat conftest.err >&5 |
|
|
12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12166 | (exit $ac_status); } >/dev/null && { |
|
|
12167 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
12168 | test ! -s conftest.err |
|
|
12169 | }; then |
|
|
12170 | ac_header_preproc=yes |
|
|
12171 | else |
|
|
12172 | echo "$as_me: failed program was:" >&5 |
|
|
12173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12174 | |
|
|
12175 | ac_header_preproc=no |
|
|
12176 | fi |
|
|
12177 | |
|
|
12178 | rm -f conftest.err conftest.$ac_ext |
|
|
12179 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12180 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
12181 | |
|
|
12182 | # So? What about this header? |
|
|
12183 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12184 | yes:no: ) |
|
|
12185 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12186 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12188 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12189 | ac_header_preproc=yes |
|
|
12190 | ;; |
|
|
12191 | no:yes:* ) |
|
|
12192 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12193 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12194 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12195 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12196 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12197 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12198 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12199 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12202 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12203 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12204 | |
|
|
12205 | ;; |
|
|
12206 | esac |
|
|
12207 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12208 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
12209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12211 | else |
|
|
12212 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12213 | fi |
|
|
12214 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12215 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12216 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12217 | |
|
|
12218 | fi |
|
|
12219 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12220 | cat >>confdefs.h <<_ACEOF |
|
|
12221 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12222 | _ACEOF |
|
|
12223 | |
|
|
12224 | fi |
|
|
12225 | |
|
|
12226 | done |
|
|
12227 | |
|
|
12228 | |
|
|
12229 | |
|
|
12230 | |
|
|
12231 | |
|
|
12232 | |
|
|
12233 | |
|
|
12234 | |
|
|
12235 | |
|
|
12236 | |
|
|
12237 | |
|
|
12238 | for ac_func in \ |
|
|
12239 | revoke \ |
|
|
12240 | _getpty \ |
|
|
12241 | getpt \ |
|
|
12242 | posix_openpt \ |
|
|
12243 | isastream \ |
|
|
12244 | setuid \ |
|
|
12245 | seteuid \ |
|
|
12246 | setreuid \ |
|
|
12247 | setresuid \ |
|
|
12248 | |
|
|
12249 | do |
|
|
12250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12251 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
12253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12255 | else |
|
|
12256 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12257 | /* confdefs.h. */ |
|
|
12258 | _ACEOF |
|
|
12259 | cat confdefs.h >>conftest.$ac_ext |
|
|
12260 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12261 | /* end confdefs.h. */ |
|
|
12262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12264 | #define $ac_func innocuous_$ac_func |
|
|
12265 | |
|
|
12266 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12267 | which can conflict with char $ac_func (); below. |
|
|
12268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12269 | <limits.h> exists even on freestanding compilers. */ |
|
|
12270 | |
|
|
12271 | #ifdef __STDC__ |
|
|
12272 | # include <limits.h> |
|
|
12273 | #else |
|
|
12274 | # include <assert.h> |
|
|
12275 | #endif |
|
|
12276 | |
|
|
12277 | #undef $ac_func |
|
|
12278 | |
|
|
12279 | /* Override any GCC internal prototype to avoid an error. |
|
|
12280 | Use char because int might match the return type of a GCC |
|
|
12281 | builtin and then its argument prototype would still apply. */ |
|
|
12282 | #ifdef __cplusplus |
|
|
12283 | extern "C" |
|
|
12284 | #endif |
|
|
12285 | char $ac_func (); |
|
|
12286 | /* The GNU C library defines this for functions which it implements |
|
|
12287 | to always fail with ENOSYS. Some functions are actually named |
|
|
12288 | something starting with __ and the normal name is an alias. */ |
|
|
12289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
12290 | choke me |
|
|
12291 | #endif |
|
|
12292 | |
|
|
12293 | int |
|
|
12294 | main () |
|
|
12295 | { |
|
|
12296 | return $ac_func (); |
|
|
12297 | ; |
|
|
12298 | return 0; |
|
|
12299 | } |
|
|
12300 | _ACEOF |
|
|
12301 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12302 | if { (ac_try="$ac_link" |
|
|
12303 | case "(($ac_try" in |
|
|
12304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12305 | *) ac_try_echo=$ac_try;; |
|
|
12306 | esac |
|
|
12307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12308 | (eval "$ac_link") 2>conftest.er1 |
|
|
12309 | ac_status=$? |
|
|
12310 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12311 | rm -f conftest.er1 |
|
|
12312 | cat conftest.err >&5 |
|
|
12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12314 | (exit $ac_status); } && { |
|
|
12315 | test -z "$ac_cxx_werror_flag" || |
|
|
12316 | test ! -s conftest.err |
|
|
12317 | } && test -s conftest$ac_exeext && |
|
|
12318 | $as_test_x conftest$ac_exeext; then |
|
|
12319 | eval "$as_ac_var=yes" |
|
|
12320 | else |
|
|
12321 | echo "$as_me: failed program was:" >&5 |
|
|
12322 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12323 | |
|
|
12324 | eval "$as_ac_var=no" |
|
|
12325 | fi |
|
|
12326 | |
|
|
12327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12328 | conftest$ac_exeext conftest.$ac_ext |
|
|
12329 | fi |
|
|
12330 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
12331 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12332 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12333 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12334 | cat >>confdefs.h <<_ACEOF |
|
|
12335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12336 | _ACEOF |
|
|
12337 | |
|
|
12338 | fi |
|
|
12339 | done |
|
|
12340 | |
|
|
12341 | |
|
|
12342 | have_clone=no |
|
|
12343 | |
|
|
12344 | { echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12345 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; } |
|
|
12346 | if test -e /dev/ptym/clone; then |
|
|
12347 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12348 | echo "${ECHO_T}yes" >&6; } |
|
|
12349 | |
|
|
12350 | cat >>confdefs.h <<\_ACEOF |
|
|
12351 | #define HAVE_DEV_CLONE 1 |
|
|
12352 | _ACEOF |
|
|
12353 | |
|
|
12354 | |
|
|
12355 | cat >>confdefs.h <<\_ACEOF |
|
|
12356 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12357 | _ACEOF |
|
|
12358 | |
|
|
12359 | have_clone=yes |
|
|
12360 | else |
|
|
12361 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12362 | echo "${ECHO_T}no" >&6; } |
|
|
12363 | fi |
|
|
12364 | |
|
|
12365 | { echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12366 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; } |
|
|
12367 | if test -e /dev/ptc; then |
|
|
12368 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12369 | echo "${ECHO_T}yes" >&6; } |
|
|
12370 | |
|
|
12371 | cat >>confdefs.h <<\_ACEOF |
|
|
12372 | #define HAVE_DEV_PTC 1 |
|
|
12373 | _ACEOF |
|
|
12374 | |
|
|
12375 | |
|
|
12376 | cat >>confdefs.h <<\_ACEOF |
|
|
12377 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12378 | _ACEOF |
|
|
12379 | |
|
|
12380 | have_clone=yes |
|
|
12381 | else |
|
|
12382 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12383 | echo "${ECHO_T}no" >&6; } |
|
|
12384 | fi |
|
|
12385 | |
|
|
12386 | case $host in |
|
|
12387 | *-*-cygwin*) |
|
|
12388 | have_clone=yes |
|
|
12389 | |
|
|
12390 | cat >>confdefs.h <<\_ACEOF |
|
|
12391 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12392 | _ACEOF |
|
|
12393 | |
|
|
12394 | ;; |
|
|
12395 | *) |
|
|
12396 | { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12397 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; } |
|
|
12398 | if test -e /dev/ptmx; then |
|
|
12399 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12400 | echo "${ECHO_T}yes" >&6; } |
|
|
12401 | |
|
|
12402 | cat >>confdefs.h <<\_ACEOF |
|
|
12403 | #define HAVE_DEV_PTMX 1 |
|
|
12404 | _ACEOF |
|
|
12405 | |
|
|
12406 | |
|
|
12407 | cat >>confdefs.h <<\_ACEOF |
|
|
12408 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12409 | _ACEOF |
|
|
12410 | |
|
|
12411 | have_clone=yes |
|
|
12412 | else |
|
|
12413 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12414 | echo "${ECHO_T}no" >&6; } |
|
|
12415 | fi |
|
|
12416 | ;; |
|
|
12417 | esac |
|
|
12418 | |
|
|
12419 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12420 | { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12421 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } |
|
|
12422 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12423 | /* confdefs.h. */ |
|
|
12424 | _ACEOF |
|
|
12425 | cat confdefs.h >>conftest.$ac_ext |
|
|
12426 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12427 | /* end confdefs.h. */ |
|
|
12428 | #include <stdlib.h> |
|
|
12429 | int |
|
|
12430 | main () |
|
|
12431 | { |
|
|
12432 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12433 | ; |
|
|
12434 | return 0; |
|
|
12435 | } |
|
|
12436 | _ACEOF |
|
|
12437 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12438 | if { (ac_try="$ac_link" |
|
|
12439 | case "(($ac_try" in |
|
|
12440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12441 | *) ac_try_echo=$ac_try;; |
|
|
12442 | esac |
|
|
12443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12444 | (eval "$ac_link") 2>conftest.er1 |
|
|
12445 | ac_status=$? |
|
|
12446 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12447 | rm -f conftest.er1 |
|
|
12448 | cat conftest.err >&5 |
|
|
12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12450 | (exit $ac_status); } && { |
|
|
12451 | test -z "$ac_cxx_werror_flag" || |
|
|
12452 | test ! -s conftest.err |
|
|
12453 | } && test -s conftest$ac_exeext && |
|
|
12454 | $as_test_x conftest$ac_exeext; then |
|
|
12455 | unix98_pty=yes |
|
|
12456 | |
|
|
12457 | cat >>confdefs.h <<\_ACEOF |
|
|
12458 | #define UNIX98_PTY 1 |
|
|
12459 | _ACEOF |
|
|
12460 | |
|
|
12461 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12462 | echo "${ECHO_T}yes" >&6; } |
|
|
12463 | else |
|
|
12464 | echo "$as_me: failed program was:" >&5 |
|
|
12465 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12466 | |
|
|
12467 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
12468 | echo "${ECHO_T}no" >&6; } |
|
|
12469 | fi |
|
|
12470 | |
|
|
12471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12472 | conftest$ac_exeext conftest.$ac_ext |
|
|
12473 | fi |
|
|
12474 | |
|
|
12475 | if test -z "$unix98_pty"; then |
|
|
12476 | |
|
|
12477 | for ac_func in openpty |
|
|
12478 | do |
|
|
12479 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12480 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12481 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
12482 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12484 | else |
|
|
12485 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12486 | /* confdefs.h. */ |
|
|
12487 | _ACEOF |
|
|
12488 | cat confdefs.h >>conftest.$ac_ext |
|
|
12489 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12490 | /* end confdefs.h. */ |
|
|
12491 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12493 | #define $ac_func innocuous_$ac_func |
|
|
12494 | |
|
|
12495 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12496 | which can conflict with char $ac_func (); below. |
|
|
12497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12498 | <limits.h> exists even on freestanding compilers. */ |
|
|
12499 | |
|
|
12500 | #ifdef __STDC__ |
|
|
12501 | # include <limits.h> |
|
|
12502 | #else |
|
|
12503 | # include <assert.h> |
|
|
12504 | #endif |
|
|
12505 | |
|
|
12506 | #undef $ac_func |
|
|
12507 | |
|
|
12508 | /* Override any GCC internal prototype to avoid an error. |
|
|
12509 | Use char because int might match the return type of a GCC |
|
|
12510 | builtin and then its argument prototype would still apply. */ |
|
|
12511 | #ifdef __cplusplus |
|
|
12512 | extern "C" |
|
|
12513 | #endif |
|
|
12514 | char $ac_func (); |
|
|
12515 | /* The GNU C library defines this for functions which it implements |
|
|
12516 | to always fail with ENOSYS. Some functions are actually named |
|
|
12517 | something starting with __ and the normal name is an alias. */ |
|
|
12518 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
12519 | choke me |
|
|
12520 | #endif |
|
|
12521 | |
|
|
12522 | int |
|
|
12523 | main () |
|
|
12524 | { |
|
|
12525 | return $ac_func (); |
|
|
12526 | ; |
|
|
12527 | return 0; |
|
|
12528 | } |
|
|
12529 | _ACEOF |
|
|
12530 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12531 | if { (ac_try="$ac_link" |
|
|
12532 | case "(($ac_try" in |
|
|
12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12534 | *) ac_try_echo=$ac_try;; |
|
|
12535 | esac |
|
|
12536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12537 | (eval "$ac_link") 2>conftest.er1 |
|
|
12538 | ac_status=$? |
|
|
12539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12540 | rm -f conftest.er1 |
|
|
12541 | cat conftest.err >&5 |
|
|
12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12543 | (exit $ac_status); } && { |
|
|
12544 | test -z "$ac_cxx_werror_flag" || |
|
|
12545 | test ! -s conftest.err |
|
|
12546 | } && test -s conftest$ac_exeext && |
|
|
12547 | $as_test_x conftest$ac_exeext; then |
|
|
12548 | eval "$as_ac_var=yes" |
|
|
12549 | else |
|
|
12550 | echo "$as_me: failed program was:" >&5 |
|
|
12551 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12552 | |
|
|
12553 | eval "$as_ac_var=no" |
|
|
12554 | fi |
|
|
12555 | |
|
|
12556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12557 | conftest$ac_exeext conftest.$ac_ext |
|
|
12558 | fi |
|
|
12559 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
12560 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12561 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12562 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12563 | cat >>confdefs.h <<_ACEOF |
|
|
12564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12565 | _ACEOF |
|
|
12566 | |
|
|
12567 | else |
|
|
12568 | { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12569 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; } |
|
|
12570 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12572 | else |
|
|
12573 | ac_check_lib_save_LIBS=$LIBS |
|
|
12574 | LIBS="-lutil $LIBS" |
|
|
12575 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12576 | /* confdefs.h. */ |
|
|
12577 | _ACEOF |
|
|
12578 | cat confdefs.h >>conftest.$ac_ext |
|
|
12579 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12580 | /* end confdefs.h. */ |
|
|
12581 | |
|
|
12582 | /* Override any GCC internal prototype to avoid an error. |
|
|
12583 | Use char because int might match the return type of a GCC |
|
|
12584 | builtin and then its argument prototype would still apply. */ |
|
|
12585 | #ifdef __cplusplus |
|
|
12586 | extern "C" |
|
|
12587 | #endif |
|
|
12588 | char openpty (); |
|
|
12589 | int |
|
|
12590 | main () |
|
|
12591 | { |
|
|
12592 | return openpty (); |
|
|
12593 | ; |
|
|
12594 | return 0; |
|
|
12595 | } |
|
|
12596 | _ACEOF |
|
|
12597 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12598 | if { (ac_try="$ac_link" |
|
|
12599 | case "(($ac_try" in |
|
|
12600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12601 | *) ac_try_echo=$ac_try;; |
|
|
12602 | esac |
|
|
12603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12604 | (eval "$ac_link") 2>conftest.er1 |
|
|
12605 | ac_status=$? |
|
|
12606 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12607 | rm -f conftest.er1 |
|
|
12608 | cat conftest.err >&5 |
|
|
12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12610 | (exit $ac_status); } && { |
|
|
12611 | test -z "$ac_cxx_werror_flag" || |
|
|
12612 | test ! -s conftest.err |
|
|
12613 | } && test -s conftest$ac_exeext && |
|
|
12614 | $as_test_x conftest$ac_exeext; then |
|
|
12615 | ac_cv_lib_util_openpty=yes |
|
|
12616 | else |
|
|
12617 | echo "$as_me: failed program was:" >&5 |
|
|
12618 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12619 | |
|
|
12620 | ac_cv_lib_util_openpty=no |
|
|
12621 | fi |
|
|
12622 | |
|
|
12623 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
12624 | conftest$ac_exeext conftest.$ac_ext |
|
|
12625 | LIBS=$ac_check_lib_save_LIBS |
|
|
12626 | fi |
|
|
12627 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12628 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; } |
|
|
12629 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12630 | cat >>confdefs.h <<\_ACEOF |
|
|
12631 | #define HAVE_OPENPTY 1 |
|
|
12632 | _ACEOF |
|
|
12633 | LIBS="$LIBS -lutil" |
|
|
12634 | fi |
|
|
12635 | |
|
|
12636 | fi |
|
|
12637 | done |
|
|
12638 | |
|
|
12639 | fi |
|
|
12640 | |
|
|
12641 | |
|
|
12642 | |
|
|
12643 | { echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12644 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } |
|
|
12645 | if test "${tty_group+set}" = set; then |
|
|
12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12647 | else |
|
|
12648 | if test "$cross_compiling" = yes; then |
|
|
12649 | tty_group=no |
|
|
12650 | else |
|
|
12651 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12652 | /* confdefs.h. */ |
|
|
12653 | _ACEOF |
|
|
12654 | cat confdefs.h >>conftest.$ac_ext |
|
|
12655 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12656 | /* end confdefs.h. */ |
|
|
12657 | |
|
|
12658 | #include <sys/types.h> |
|
|
12659 | #include <sys/stat.h> |
|
|
12660 | #include <unistd.h> |
|
|
12661 | #include <grp.h> |
|
|
12662 | |
|
|
12663 | main() |
|
|
12664 | { |
|
|
12665 | struct stat st; |
|
|
12666 | struct group *gr; |
|
|
12667 | char *tty; |
|
|
12668 | gr = getgrnam("tty"); |
|
|
12669 | tty = ttyname(0); |
|
|
12670 | if (gr != 0 |
|
|
12671 | && tty != 0 |
|
|
12672 | && (stat(tty, &st)) == 0 |
|
|
12673 | && st.st_gid == gr->gr_gid) |
|
|
12674 | return 0; |
|
|
12675 | else |
|
|
12676 | return 1; |
|
|
12677 | } |
|
|
12678 | _ACEOF |
|
|
12679 | rm -f conftest$ac_exeext |
|
|
12680 | if { (ac_try="$ac_link" |
|
|
12681 | case "(($ac_try" in |
|
|
12682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12683 | *) ac_try_echo=$ac_try;; |
|
|
12684 | esac |
|
|
12685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12686 | (eval "$ac_link") 2>&5 |
|
|
12687 | ac_status=$? |
|
|
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12690 | { (case "(($ac_try" in |
|
|
12691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12692 | *) ac_try_echo=$ac_try;; |
|
|
12693 | esac |
|
|
12694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12695 | (eval "$ac_try") 2>&5 |
|
|
12696 | ac_status=$? |
|
|
12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12698 | (exit $ac_status); }; }; then |
|
|
12699 | tty_group=yes |
|
|
12700 | else |
|
|
12701 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12702 | echo "$as_me: failed program was:" >&5 |
|
|
12703 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12704 | |
|
|
12705 | ( exit $ac_status ) |
|
|
12706 | tty_group=no |
|
|
12707 | fi |
|
|
12708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12709 | fi |
|
|
12710 | |
|
|
12711 | |
|
|
12712 | fi |
|
|
12713 | { echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12714 | echo "${ECHO_T}$tty_group" >&6; } |
|
|
12715 | if test x$tty_group = xyes; then |
|
|
12716 | |
|
|
12717 | cat >>confdefs.h <<\_ACEOF |
|
|
12718 | #define TTY_GID_SUPPORT 1 |
|
|
12719 | _ACEOF |
|
|
12720 | |
|
|
12721 | fi |
|
|
12722 | |
|
|
12723 | if test x$support_xft = xyes; then |
|
|
12724 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6740 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
12725 | set dummy pkg-config; ac_word=$2 |
6741 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
12726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6743 | printf %s "checking for $ac_word... " >&6; } |
12728 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6744 | if test ${ac_cv_path_PKG_CONFIG+y} |
12729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6745 | then : |
12730 | else |
6746 | printf %s "(cached) " >&6 |
|
|
6747 | else $as_nop |
12731 | case $PKG_CONFIG in |
6748 | case $PKG_CONFIG in |
12732 | [\\/]* | ?:[\\/]*) |
6749 | [\\/]* | ?:[\\/]*) |
12733 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
6750 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12734 | ;; |
6751 | ;; |
12735 | *) |
6752 | *) |
12736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12737 | for as_dir in $PATH |
6754 | for as_dir in $PATH |
12738 | do |
6755 | do |
12739 | IFS=$as_save_IFS |
6756 | IFS=$as_save_IFS |
12740 | test -z "$as_dir" && as_dir=. |
6757 | case $as_dir in #((( |
|
|
6758 | '') as_dir=./ ;; |
|
|
6759 | */) ;; |
|
|
6760 | *) as_dir=$as_dir/ ;; |
|
|
6761 | esac |
12741 | for ac_exec_ext in '' $ac_executable_extensions; do |
6762 | for ac_exec_ext in '' $ac_executable_extensions; do |
12742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6763 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
12743 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6764 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
12744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
12745 | break 2 |
6766 | break 2 |
12746 | fi |
6767 | fi |
12747 | done |
6768 | done |
12748 | done |
6769 | done |
12749 | IFS=$as_save_IFS |
6770 | IFS=$as_save_IFS |
12750 | |
6771 | |
12751 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12752 | ;; |
6772 | ;; |
12753 | esac |
6773 | esac |
12754 | fi |
6774 | fi |
12755 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6775 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12756 | if test -n "$PKG_CONFIG"; then |
6776 | if test -n "$PKG_CONFIG"; then |
12757 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
12758 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
6778 | printf "%s\n" "$PKG_CONFIG" >&6; } |
12759 | else |
6779 | else |
12760 | { echo "$as_me:$LINENO: result: no" >&5 |
6780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12761 | echo "${ECHO_T}no" >&6; } |
6781 | printf "%s\n" "no" >&6; } |
12762 | fi |
6782 | fi |
12763 | |
6783 | |
12764 | |
6784 | |
12765 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
6785 | fi |
12766 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
6786 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
12767 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
6787 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
|
|
6788 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
6789 | set dummy pkg-config; ac_word=$2 |
|
|
6790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6791 | printf %s "checking for $ac_word... " >&6; } |
|
|
6792 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
|
|
6793 | then : |
|
|
6794 | printf %s "(cached) " >&6 |
|
|
6795 | else $as_nop |
|
|
6796 | case $ac_pt_PKG_CONFIG in |
|
|
6797 | [\\/]* | ?:[\\/]*) |
|
|
6798 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
|
|
6799 | ;; |
|
|
6800 | *) |
|
|
6801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6802 | for as_dir in $PATH |
|
|
6803 | do |
|
|
6804 | IFS=$as_save_IFS |
|
|
6805 | case $as_dir in #((( |
|
|
6806 | '') as_dir=./ ;; |
|
|
6807 | */) ;; |
|
|
6808 | *) as_dir=$as_dir/ ;; |
|
|
6809 | esac |
|
|
6810 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6811 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
6812 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
|
|
6813 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
6814 | break 2 |
|
|
6815 | fi |
|
|
6816 | done |
|
|
6817 | done |
|
|
6818 | IFS=$as_save_IFS |
|
|
6819 | |
|
|
6820 | ;; |
|
|
6821 | esac |
|
|
6822 | fi |
|
|
6823 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
|
|
6824 | if test -n "$ac_pt_PKG_CONFIG"; then |
|
|
6825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
|
|
6826 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
|
|
6827 | else |
|
|
6828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6829 | printf "%s\n" "no" >&6; } |
|
|
6830 | fi |
|
|
6831 | |
|
|
6832 | if test "x$ac_pt_PKG_CONFIG" = x; then |
|
|
6833 | PKG_CONFIG="no" |
12768 | else |
6834 | else |
|
|
6835 | case $cross_compiling:$ac_tool_warned in |
|
|
6836 | yes:) |
|
|
6837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
6838 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
6839 | ac_tool_warned=yes ;; |
|
|
6840 | esac |
|
|
6841 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
|
|
6842 | fi |
|
|
6843 | else |
|
|
6844 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
|
|
6845 | fi |
|
|
6846 | |
|
|
6847 | |
|
|
6848 | |
|
|
6849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5 |
|
|
6850 | printf %s "checking for libptytty (using pkg-config)... " >&6; } |
|
|
6851 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then |
|
|
6852 | PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`" |
|
|
6853 | PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`" |
|
|
6854 | |
|
|
6855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6856 | printf "%s\n" "ok" >&6; } |
|
|
6857 | : |
|
|
6858 | else |
|
|
6859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6860 | printf "%s\n" "no" >&6; } |
|
|
6861 | |
|
|
6862 | as_fn_error $? "unable to find libptytty" "$LINENO" 5 |
|
|
6863 | |
|
|
6864 | fi |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | image_lib=none |
|
|
6871 | |
|
|
6872 | PIXBUF_CFLAGS= |
|
|
6873 | PIXBUF_LIBS= |
|
|
6874 | |
|
|
6875 | if test x$support_pixbuf = xyes; then |
|
|
6876 | |
|
|
6877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5 |
|
|
6878 | printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; } |
|
|
6879 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
6880 | PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`" |
|
|
6881 | PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`" |
|
|
6882 | |
|
|
6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6884 | printf "%s\n" "ok" >&6; } |
|
|
6885 | |
|
|
6886 | image_lib=gdk-pixbuf |
|
|
6887 | |
|
|
6888 | printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
6889 | |
|
|
6890 | |
|
|
6891 | else |
|
|
6892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6893 | printf "%s\n" "no" >&6; } |
|
|
6894 | : |
|
|
6895 | fi |
|
|
6896 | |
|
|
6897 | fi |
|
|
6898 | |
|
|
6899 | |
|
|
6900 | |
|
|
6901 | |
|
|
6902 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6903 | STARTUP_NOTIFICATION_LIBS= |
|
|
6904 | |
|
|
6905 | if test x$support_startup_notification = xyes; then |
|
|
6906 | |
|
|
6907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5 |
|
|
6908 | printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; } |
|
|
6909 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
|
|
6910 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`" |
|
|
6911 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`" |
|
|
6912 | |
|
|
6913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6914 | printf "%s\n" "ok" >&6; } |
|
|
6915 | |
|
|
6916 | |
|
|
6917 | printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6918 | |
|
|
6919 | |
|
|
6920 | else |
|
|
6921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6922 | printf "%s\n" "no" >&6; } |
|
|
6923 | : |
|
|
6924 | fi |
|
|
6925 | |
|
|
6926 | fi |
|
|
6927 | |
|
|
6928 | |
|
|
6929 | |
|
|
6930 | |
|
|
6931 | if test x$support_frills = xyes; then |
|
|
6932 | |
|
|
6933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5 |
|
|
6934 | printf %s "checking for xmu (using pkg-config)... " >&6; } |
|
|
6935 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then |
|
|
6936 | XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`" |
|
|
6937 | XMU_LIBS="`$PKG_CONFIG --libs xmu`" |
|
|
6938 | |
|
|
6939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
6940 | printf "%s\n" "ok" >&6; } |
|
|
6941 | |
|
|
6942 | X_LIBS="$XMU_LIBS $X_LIBS" |
|
|
6943 | CPPFLAGS="$CPPFLAGS $XMU_CFLAGS" |
|
|
6944 | |
|
|
6945 | printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h |
|
|
6946 | |
|
|
6947 | |
|
|
6948 | else |
|
|
6949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6950 | printf "%s\n" "no" >&6; } |
|
|
6951 | : |
|
|
6952 | fi |
|
|
6953 | |
|
|
6954 | fi |
|
|
6955 | |
|
|
6956 | ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default" |
|
|
6957 | if test "x$ac_cv_header_sys_byteorder_h" = xyes |
|
|
6958 | then : |
|
|
6959 | printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
|
|
6960 | |
|
|
6961 | fi |
|
|
6962 | ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
|
|
6963 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
|
|
6964 | then : |
|
|
6965 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
|
|
6966 | |
|
|
6967 | fi |
|
|
6968 | ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" |
|
|
6969 | if test "x$ac_cv_header_sys_sockio_h" = xyes |
|
|
6970 | then : |
|
|
6971 | printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h |
|
|
6972 | |
|
|
6973 | fi |
|
|
6974 | ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default" |
|
|
6975 | if test "x$ac_cv_header_sys_strredir_h" = xyes |
|
|
6976 | then : |
|
|
6977 | printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h |
|
|
6978 | |
|
|
6979 | fi |
|
|
6980 | ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
|
|
6981 | if test "x$ac_cv_header_stdint_h" = xyes |
|
|
6982 | then : |
|
|
6983 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
|
|
6984 | |
|
|
6985 | fi |
|
|
6986 | ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
|
|
6987 | if test "x$ac_cv_header_wchar_h" = xyes |
|
|
6988 | then : |
|
|
6989 | printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h |
|
|
6990 | |
|
|
6991 | fi |
|
|
6992 | |
|
|
6993 | |
|
|
6994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6995 | printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6996 | if test ${rxvt_cv_xlib_illegal_access+y} |
|
|
6997 | then : |
|
|
6998 | printf %s "(cached) " >&6 |
|
|
6999 | else $as_nop |
|
|
7000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7001 | /* end confdefs.h. */ |
|
|
7002 | |
|
|
7003 | #define XLIB_ILLEGAL_ACCESS |
|
|
7004 | #include <X11/Xlib.h> |
|
|
7005 | |
|
|
7006 | int |
|
|
7007 | main (void) |
|
|
7008 | { |
|
|
7009 | |
|
|
7010 | Display *dpy; |
|
|
7011 | dpy->xdefaults = (char *)0; |
|
|
7012 | |
|
|
7013 | ; |
|
|
7014 | return 0; |
|
|
7015 | } |
|
|
7016 | _ACEOF |
|
|
7017 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7018 | then : |
|
|
7019 | rxvt_cv_xlib_illegal_access=yes |
|
|
7020 | else $as_nop |
|
|
7021 | rxvt_cv_xlib_illegal_access=no |
|
|
7022 | |
|
|
7023 | fi |
|
|
7024 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7025 | fi |
|
|
7026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
7027 | printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
7028 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
7029 | |
|
|
7030 | printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
7031 | |
|
|
7032 | fi |
|
|
7033 | |
|
|
7034 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
7035 | if test "x$ac_cv_type_mode_t" = xyes |
|
|
7036 | then : |
|
|
7037 | |
|
|
7038 | else $as_nop |
|
|
7039 | |
|
|
7040 | printf "%s\n" "#define mode_t int" >>confdefs.h |
|
|
7041 | |
|
|
7042 | fi |
|
|
7043 | |
|
|
7044 | |
|
|
7045 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
|
|
7046 | " |
|
|
7047 | if test "x$ac_cv_type_pid_t" = xyes |
|
|
7048 | then : |
|
|
7049 | |
|
|
7050 | else $as_nop |
|
|
7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7052 | /* end confdefs.h. */ |
|
|
7053 | |
|
|
7054 | #if defined _WIN64 && !defined __CYGWIN__ |
|
|
7055 | LLP64 |
|
|
7056 | #endif |
|
|
7057 | |
|
|
7058 | int |
|
|
7059 | main (void) |
|
|
7060 | { |
|
|
7061 | |
|
|
7062 | ; |
|
|
7063 | return 0; |
|
|
7064 | } |
|
|
7065 | |
|
|
7066 | _ACEOF |
|
|
7067 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7068 | then : |
|
|
7069 | ac_pid_type='int' |
|
|
7070 | else $as_nop |
|
|
7071 | ac_pid_type='__int64' |
|
|
7072 | fi |
|
|
7073 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7074 | |
|
|
7075 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
|
|
7076 | |
|
|
7077 | |
|
|
7078 | fi |
|
|
7079 | |
|
|
7080 | |
|
|
7081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
|
7082 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
|
|
7083 | if test ${ac_cv_path_GREP+y} |
|
|
7084 | then : |
|
|
7085 | printf %s "(cached) " >&6 |
|
|
7086 | else $as_nop |
|
|
7087 | if test -z "$GREP"; then |
|
|
7088 | ac_path_GREP_found=false |
|
|
7089 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
7090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7091 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7092 | do |
|
|
7093 | IFS=$as_save_IFS |
|
|
7094 | case $as_dir in #((( |
|
|
7095 | '') as_dir=./ ;; |
|
|
7096 | */) ;; |
|
|
7097 | *) as_dir=$as_dir/ ;; |
|
|
7098 | esac |
|
|
7099 | for ac_prog in grep ggrep |
|
|
7100 | do |
|
|
7101 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7102 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
|
|
7103 | as_fn_executable_p "$ac_path_GREP" || continue |
|
|
7104 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
7105 | # Check for GNU $ac_path_GREP |
|
|
7106 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
7107 | *GNU*) |
|
|
7108 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
7109 | *) |
|
|
7110 | ac_count=0 |
|
|
7111 | printf %s 0123456789 >"conftest.in" |
|
|
7112 | while : |
|
|
7113 | do |
|
|
7114 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
7115 | mv "conftest.tmp" "conftest.in" |
|
|
7116 | cp "conftest.in" "conftest.nl" |
|
|
7117 | printf "%s\n" 'GREP' >> "conftest.nl" |
|
|
7118 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
7119 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
7120 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
7121 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
7122 | # Best one so far, save it but keep looking for a better one |
|
|
7123 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
7124 | ac_path_GREP_max=$ac_count |
|
|
7125 | fi |
|
|
7126 | # 10*(2^10) chars as input seems more than enough |
|
|
7127 | test $ac_count -gt 10 && break |
|
|
7128 | done |
|
|
7129 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
7130 | esac |
|
|
7131 | |
|
|
7132 | $ac_path_GREP_found && break 3 |
|
|
7133 | done |
|
|
7134 | done |
|
|
7135 | done |
|
|
7136 | IFS=$as_save_IFS |
|
|
7137 | if test -z "$ac_cv_path_GREP"; then |
|
|
7138 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
7139 | fi |
|
|
7140 | else |
|
|
7141 | ac_cv_path_GREP=$GREP |
|
|
7142 | fi |
|
|
7143 | |
|
|
7144 | fi |
|
|
7145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
7146 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
|
|
7147 | GREP="$ac_cv_path_GREP" |
|
|
7148 | |
|
|
7149 | |
|
|
7150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
7151 | printf %s "checking for egrep... " >&6; } |
|
|
7152 | if test ${ac_cv_path_EGREP+y} |
|
|
7153 | then : |
|
|
7154 | printf %s "(cached) " >&6 |
|
|
7155 | else $as_nop |
|
|
7156 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
7157 | then ac_cv_path_EGREP="$GREP -E" |
|
|
7158 | else |
|
|
7159 | if test -z "$EGREP"; then |
|
|
7160 | ac_path_EGREP_found=false |
|
|
7161 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
7162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7163 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
7164 | do |
|
|
7165 | IFS=$as_save_IFS |
|
|
7166 | case $as_dir in #((( |
|
|
7167 | '') as_dir=./ ;; |
|
|
7168 | */) ;; |
|
|
7169 | *) as_dir=$as_dir/ ;; |
|
|
7170 | esac |
|
|
7171 | for ac_prog in egrep |
|
|
7172 | do |
|
|
7173 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7174 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
|
|
7175 | as_fn_executable_p "$ac_path_EGREP" || continue |
|
|
7176 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
7177 | # Check for GNU $ac_path_EGREP |
|
|
7178 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
7179 | *GNU*) |
|
|
7180 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
7181 | *) |
|
|
7182 | ac_count=0 |
|
|
7183 | printf %s 0123456789 >"conftest.in" |
|
|
7184 | while : |
|
|
7185 | do |
|
|
7186 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
7187 | mv "conftest.tmp" "conftest.in" |
|
|
7188 | cp "conftest.in" "conftest.nl" |
|
|
7189 | printf "%s\n" 'EGREP' >> "conftest.nl" |
|
|
7190 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
7191 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
7192 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
7193 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
7194 | # Best one so far, save it but keep looking for a better one |
|
|
7195 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
7196 | ac_path_EGREP_max=$ac_count |
|
|
7197 | fi |
|
|
7198 | # 10*(2^10) chars as input seems more than enough |
|
|
7199 | test $ac_count -gt 10 && break |
|
|
7200 | done |
|
|
7201 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
7202 | esac |
|
|
7203 | |
|
|
7204 | $ac_path_EGREP_found && break 3 |
|
|
7205 | done |
|
|
7206 | done |
|
|
7207 | done |
|
|
7208 | IFS=$as_save_IFS |
|
|
7209 | if test -z "$ac_cv_path_EGREP"; then |
|
|
7210 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
7211 | fi |
|
|
7212 | else |
|
|
7213 | ac_cv_path_EGREP=$EGREP |
|
|
7214 | fi |
|
|
7215 | |
|
|
7216 | fi |
|
|
7217 | fi |
|
|
7218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
7219 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
|
|
7220 | EGREP="$ac_cv_path_EGREP" |
|
|
7221 | |
|
|
7222 | |
|
|
7223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
7224 | printf %s "checking for uid_t in sys/types.h... " >&6; } |
|
|
7225 | if test ${ac_cv_type_uid_t+y} |
|
|
7226 | then : |
|
|
7227 | printf %s "(cached) " >&6 |
|
|
7228 | else $as_nop |
|
|
7229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7230 | /* end confdefs.h. */ |
|
|
7231 | #include <sys/types.h> |
|
|
7232 | |
|
|
7233 | _ACEOF |
|
|
7234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7235 | $EGREP "uid_t" >/dev/null 2>&1 |
|
|
7236 | then : |
|
|
7237 | ac_cv_type_uid_t=yes |
|
|
7238 | else $as_nop |
|
|
7239 | ac_cv_type_uid_t=no |
|
|
7240 | fi |
|
|
7241 | rm -rf conftest* |
|
|
7242 | |
|
|
7243 | fi |
|
|
7244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
7245 | printf "%s\n" "$ac_cv_type_uid_t" >&6; } |
|
|
7246 | if test $ac_cv_type_uid_t = no; then |
|
|
7247 | |
|
|
7248 | printf "%s\n" "#define uid_t int" >>confdefs.h |
|
|
7249 | |
|
|
7250 | |
|
|
7251 | printf "%s\n" "#define gid_t int" >>confdefs.h |
|
|
7252 | |
|
|
7253 | fi |
|
|
7254 | |
|
|
7255 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
7256 | case $ac_cv_c_int16_t in #( |
|
|
7257 | no|yes) ;; #( |
|
|
7258 | *) |
|
|
7259 | |
|
|
7260 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
|
|
7261 | ;; |
|
|
7262 | esac |
|
|
7263 | |
|
|
7264 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
7265 | case $ac_cv_c_uint16_t in #( |
|
|
7266 | no|yes) ;; #( |
|
|
7267 | *) |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
|
|
7271 | ;; |
|
|
7272 | esac |
|
|
7273 | |
|
|
7274 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
7275 | case $ac_cv_c_int32_t in #( |
|
|
7276 | no|yes) ;; #( |
|
|
7277 | *) |
|
|
7278 | |
|
|
7279 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
|
|
7280 | ;; |
|
|
7281 | esac |
|
|
7282 | |
|
|
7283 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
7284 | case $ac_cv_c_uint32_t in #( |
|
|
7285 | no|yes) ;; #( |
|
|
7286 | *) |
|
|
7287 | |
|
|
7288 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
|
|
7289 | |
|
|
7290 | |
|
|
7291 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
|
|
7292 | ;; |
|
|
7293 | esac |
|
|
7294 | |
|
|
7295 | |
|
|
7296 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
7297 | if test "x$ac_cv_func_unsetenv" = xyes |
|
|
7298 | then : |
|
|
7299 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
|
|
7300 | |
|
|
7301 | fi |
|
|
7302 | |
|
|
7303 | |
|
|
7304 | |
|
|
7305 | |
|
|
7306 | save_LIBS=$LIBS |
|
|
7307 | save_CXXFLAGS=$CXXFLAGS |
|
|
7308 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
|
|
7309 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7310 | if test x$support_xim = xyes; then |
|
|
7311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
7312 | printf %s "checking for working Xlocale... " >&6; } |
|
|
7313 | if test ${rxvt_cv_func_xlocale+y} |
|
|
7314 | then : |
|
|
7315 | printf %s "(cached) " >&6 |
|
|
7316 | else $as_nop |
|
|
7317 | if test "$cross_compiling" = yes |
|
|
7318 | then : |
|
|
7319 | : |
|
|
7320 | else $as_nop |
|
|
7321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7322 | /* end confdefs.h. */ |
|
|
7323 | |
|
|
7324 | #include <X11/Xlib.h> |
|
|
7325 | #include <stdlib.h> |
|
|
7326 | int main() { |
|
|
7327 | char *p; |
|
|
7328 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
7329 | exit (XSupportsLocale() ? 0 : 1); |
|
|
7330 | else |
|
|
7331 | exit (1); |
|
|
7332 | } |
|
|
7333 | |
|
|
7334 | _ACEOF |
|
|
7335 | if ac_fn_cxx_try_run "$LINENO" |
|
|
7336 | then : |
|
|
7337 | rxvt_cv_func_xlocale=yes |
|
|
7338 | else $as_nop |
|
|
7339 | rxvt_cv_func_xlocale=no |
|
|
7340 | fi |
|
|
7341 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7342 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7343 | fi |
|
|
7344 | |
|
|
7345 | fi |
|
|
7346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7347 | printf "%s\n" "$rxvt_cv_func_xlocale" >&6; } |
|
|
7348 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7349 | |
|
|
7350 | printf "%s\n" "#define USE_XIM 1" >>confdefs.h |
|
|
7351 | |
|
|
7352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7353 | printf %s "checking for broken XIM callback... " >&6; } |
|
|
7354 | if test ${rxvt_cv_broken_ximcb+y} |
|
|
7355 | then : |
|
|
7356 | printf %s "(cached) " >&6 |
|
|
7357 | else $as_nop |
|
|
7358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7359 | /* end confdefs.h. */ |
|
|
7360 | |
|
|
7361 | #include <X11/Xlib.h> |
|
|
7362 | |
|
|
7363 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7364 | |
|
|
7365 | void f() { |
|
|
7366 | XIMCallback cb; |
|
|
7367 | cb.callback = im_destroy_cb; |
|
|
7368 | } |
|
|
7369 | |
|
|
7370 | _ACEOF |
|
|
7371 | if ac_fn_cxx_try_compile "$LINENO" |
|
|
7372 | then : |
|
|
7373 | rxvt_cv_broken_ximcb=yes |
|
|
7374 | else $as_nop |
|
|
7375 | rxvt_cv_broken_ximcb=no |
|
|
7376 | fi |
|
|
7377 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7378 | fi |
|
|
7379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7380 | printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7381 | |
|
|
7382 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7383 | |
|
|
7384 | printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7385 | |
|
|
7386 | fi |
|
|
7387 | fi |
|
|
7388 | fi |
|
|
7389 | |
|
|
7390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7391 | printf %s "checking for working X setlocale... " >&6; } |
|
|
7392 | if test ${rxvt_cv_func_xsetlocale+y} |
|
|
7393 | then : |
|
|
7394 | printf %s "(cached) " >&6 |
|
|
7395 | else $as_nop |
|
|
7396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7397 | /* end confdefs.h. */ |
|
|
7398 | #define X_LOCALE 1 |
|
|
7399 | #include <X11/Xlocale.h> |
|
|
7400 | int |
|
|
7401 | main (void) |
|
|
7402 | { |
|
|
7403 | setlocale(LC_CTYPE, ""); |
|
|
7404 | ; |
|
|
7405 | return 0; |
|
|
7406 | } |
|
|
7407 | _ACEOF |
|
|
7408 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7409 | then : |
|
|
7410 | rxvt_cv_func_xsetlocale=yes |
|
|
7411 | else $as_nop |
|
|
7412 | rxvt_cv_func_xsetlocale=no |
|
|
7413 | fi |
|
|
7414 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
7415 | conftest$ac_exeext conftest.$ac_ext |
|
|
7416 | fi |
|
|
7417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7418 | printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7419 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7420 | |
|
|
7421 | printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7422 | |
|
|
7423 | fi |
|
|
7424 | LIBS=$save_LIBS |
|
|
7425 | CXXFLAGS=$save_CXXFLAGS |
|
|
7426 | |
|
|
7427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7428 | printf %s "checking for working nl_langinfo... " >&6; } |
|
|
7429 | if test ${rxvt_cv_func_nl_langinfo+y} |
|
|
7430 | then : |
|
|
7431 | printf %s "(cached) " >&6 |
|
|
7432 | else $as_nop |
|
|
7433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7434 | /* end confdefs.h. */ |
|
|
7435 | #include <langinfo.h> |
|
|
7436 | int |
|
|
7437 | main (void) |
|
|
7438 | { |
|
|
7439 | nl_langinfo(CODESET); |
|
|
7440 | ; |
|
|
7441 | return 0; |
|
|
7442 | } |
|
|
7443 | _ACEOF |
|
|
7444 | if ac_fn_cxx_try_link "$LINENO" |
|
|
7445 | then : |
|
|
7446 | rxvt_cv_func_nl_langinfo=yes |
|
|
7447 | else $as_nop |
|
|
7448 | rxvt_cv_func_nl_langinfo=no |
|
|
7449 | fi |
|
|
7450 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
7451 | conftest$ac_exeext conftest.$ac_ext |
|
|
7452 | fi |
|
|
7453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7454 | printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7455 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7456 | |
|
|
7457 | printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7458 | |
|
|
7459 | fi |
|
|
7460 | |
|
|
7461 | support_image=no |
|
|
7462 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7463 | support_image=yes |
|
|
7464 | fi |
|
|
7465 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7466 | rxvt_have_xrender=no |
|
|
7467 | |
|
|
7468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5 |
|
|
7469 | printf %s "checking for xrender (using pkg-config)... " >&6; } |
|
|
7470 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
|
|
7471 | XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`" |
|
|
7472 | XRENDER_LIBS="`$PKG_CONFIG --libs xrender`" |
|
|
7473 | |
|
|
7474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7475 | printf "%s\n" "ok" >&6; } |
|
|
7476 | |
|
|
7477 | X_LIBS="$XRENDER_LIBS $X_LIBS" |
|
|
7478 | CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" |
|
|
7479 | rxvt_have_xrender=yes |
|
|
7480 | |
|
|
7481 | save_LIBS="$LIBS" |
|
|
7482 | LIBS="$LIBS $X_LIBS" |
|
|
7483 | ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
|
|
7484 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes |
|
|
7485 | then : |
|
|
7486 | |
|
|
7487 | else $as_nop |
|
|
7488 | rxvt_have_xrender=no |
|
|
7489 | fi |
|
|
7490 | |
|
|
7491 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7492 | if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes |
|
|
7493 | then : |
|
|
7494 | |
|
|
7495 | else $as_nop |
|
|
7496 | rxvt_have_xrender=no |
|
|
7497 | fi |
|
|
7498 | |
|
|
7499 | LIBS="$save_LIBS" |
|
|
7500 | |
|
|
7501 | else |
|
|
7502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7503 | printf "%s\n" "no" >&6; } |
|
|
7504 | : |
|
|
7505 | fi |
|
|
7506 | |
|
|
7507 | fi |
|
|
7508 | |
|
|
7509 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7510 | |
|
|
7511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5 |
|
|
7512 | printf %s "checking for fontconfig xft (using pkg-config)... " >&6; } |
|
|
7513 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then |
|
|
7514 | XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`" |
|
|
7515 | XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`" |
|
|
7516 | |
|
|
7517 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7518 | printf "%s\n" "ok" >&6; } |
|
|
7519 | |
|
|
7520 | X_LIBS="$XFT_LIBS $X_LIBS" |
|
|
7521 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
|
|
7522 | |
|
|
7523 | else |
|
|
7524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7525 | printf "%s\n" "no" >&6; } |
|
|
7526 | |
12769 | # Extract the first word of "xft-config", so it can be a program name with args. |
7527 | # Extract the first word of "xft-config", so it can be a program name with args. |
12770 | set dummy xft-config; ac_word=$2 |
7528 | set dummy xft-config; ac_word=$2 |
12771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7530 | printf %s "checking for $ac_word... " >&6; } |
12773 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
7531 | if test ${ac_cv_path_XFT_CONFIG+y} |
12774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7532 | then : |
12775 | else |
7533 | printf %s "(cached) " >&6 |
|
|
7534 | else $as_nop |
12776 | case $XFT_CONFIG in |
7535 | case $XFT_CONFIG in |
12777 | [\\/]* | ?:[\\/]*) |
7536 | [\\/]* | ?:[\\/]*) |
12778 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
7537 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
12779 | ;; |
7538 | ;; |
12780 | *) |
7539 | *) |
12781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12782 | for as_dir in $PATH |
7541 | for as_dir in $PATH |
12783 | do |
7542 | do |
12784 | IFS=$as_save_IFS |
7543 | IFS=$as_save_IFS |
12785 | test -z "$as_dir" && as_dir=. |
7544 | case $as_dir in #((( |
|
|
7545 | '') as_dir=./ ;; |
|
|
7546 | */) ;; |
|
|
7547 | *) as_dir=$as_dir/ ;; |
|
|
7548 | esac |
12786 | for ac_exec_ext in '' $ac_executable_extensions; do |
7549 | for ac_exec_ext in '' $ac_executable_extensions; do |
12787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7550 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
12788 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7551 | ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext" |
12789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
12790 | break 2 |
7553 | break 2 |
12791 | fi |
7554 | fi |
12792 | done |
7555 | done |
12793 | done |
7556 | done |
12794 | IFS=$as_save_IFS |
7557 | IFS=$as_save_IFS |
12795 | |
7558 | |
12796 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7559 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
12797 | ;; |
7560 | ;; |
12798 | esac |
7561 | esac |
12799 | fi |
7562 | fi |
12800 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
7563 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
12801 | if test -n "$XFT_CONFIG"; then |
7564 | if test -n "$XFT_CONFIG"; then |
12802 | { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
7565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
12803 | echo "${ECHO_T}$XFT_CONFIG" >&6; } |
7566 | printf "%s\n" "$XFT_CONFIG" >&6; } |
12804 | else |
7567 | else |
12805 | { echo "$as_me:$LINENO: result: no" >&5 |
7568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12806 | echo "${ECHO_T}no" >&6; } |
7569 | printf "%s\n" "no" >&6; } |
12807 | fi |
7570 | fi |
12808 | |
7571 | |
12809 | |
7572 | |
12810 | if test $XFT_CONFIG != no; then |
7573 | if test $XFT_CONFIG != no; then |
12811 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
7574 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12812 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
7575 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12813 | fi |
7576 | fi |
12814 | fi |
|
|
12815 | |
7577 | |
|
|
7578 | fi |
12816 | |
7579 | |
12817 | for ac_header in X11/Xft/Xft.h |
7580 | |
12818 | do |
7581 | save_LIBS="$LIBS" |
|
|
7582 | LIBS="$LIBS $X_LIBS" |
|
|
7583 | for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h |
|
|
7584 | do : |
12819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7585 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
12820 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7586 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
12821 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7587 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
12822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
7588 | then : |
12823 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7589 | cat >>confdefs.h <<_ACEOF |
12824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7590 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
12825 | fi |
|
|
12826 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12828 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12829 | else |
|
|
12830 | # Is the header compilable? |
|
|
12831 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12832 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
12833 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12834 | /* confdefs.h. */ |
|
|
12835 | _ACEOF |
7591 | _ACEOF |
|
|
7592 | |
|
|
7593 | else $as_nop |
|
|
7594 | support_xft=no |
|
|
7595 | fi |
|
|
7596 | |
|
|
7597 | done |
|
|
7598 | |
|
|
7599 | for ac_func in XftDrawString32 FcPatternGet |
|
|
7600 | do : |
|
|
7601 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7602 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7603 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
|
|
7604 | then : |
|
|
7605 | cat >>confdefs.h <<_ACEOF |
|
|
7606 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7607 | _ACEOF |
|
|
7608 | |
|
|
7609 | else $as_nop |
|
|
7610 | support_xft=no |
|
|
7611 | fi |
|
|
7612 | |
|
|
7613 | done |
|
|
7614 | LIBS="$save_LIBS" |
|
|
7615 | |
|
|
7616 | if test x$support_xft = xyes; then |
|
|
7617 | |
|
|
7618 | printf "%s\n" "#define XFT 1" >>confdefs.h |
|
|
7619 | |
|
|
7620 | fi |
|
|
7621 | fi |
|
|
7622 | |
|
|
7623 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5 |
|
|
7625 | printf %s "checking for Render >= 0.11... " >&6; } |
12836 | cat confdefs.h >>conftest.$ac_ext |
7626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12837 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12838 | /* end confdefs.h. */ |
7627 | /* end confdefs.h. */ |
12839 | $ac_includes_default |
|
|
12840 | #include <$ac_header> |
|
|
12841 | _ACEOF |
|
|
12842 | rm -f conftest.$ac_objext |
|
|
12843 | if { (ac_try="$ac_compile" |
|
|
12844 | case "(($ac_try" in |
|
|
12845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12846 | *) ac_try_echo=$ac_try;; |
|
|
12847 | esac |
|
|
12848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12849 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12850 | ac_status=$? |
|
|
12851 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12852 | rm -f conftest.er1 |
|
|
12853 | cat conftest.err >&5 |
|
|
12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12855 | (exit $ac_status); } && { |
|
|
12856 | test -z "$ac_cxx_werror_flag" || |
|
|
12857 | test ! -s conftest.err |
|
|
12858 | } && test -s conftest.$ac_objext; then |
|
|
12859 | ac_header_compiler=yes |
|
|
12860 | else |
|
|
12861 | echo "$as_me: failed program was:" >&5 |
|
|
12862 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12863 | |
7628 | |
12864 | ac_header_compiler=no |
7629 | #include <X11/extensions/Xrender.h> |
12865 | fi |
7630 | #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
12866 | |
7631 | error |
12867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12868 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12869 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
12870 | |
|
|
12871 | # Is the header present? |
|
|
12872 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12873 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
12874 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12875 | /* confdefs.h. */ |
|
|
12876 | _ACEOF |
|
|
12877 | cat confdefs.h >>conftest.$ac_ext |
|
|
12878 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12879 | /* end confdefs.h. */ |
|
|
12880 | #include <$ac_header> |
|
|
12881 | _ACEOF |
|
|
12882 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
12883 | case "(($ac_try" in |
|
|
12884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12885 | *) ac_try_echo=$ac_try;; |
|
|
12886 | esac |
|
|
12887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12888 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
12889 | ac_status=$? |
|
|
12890 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12891 | rm -f conftest.er1 |
|
|
12892 | cat conftest.err >&5 |
|
|
12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12894 | (exit $ac_status); } >/dev/null && { |
|
|
12895 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
12896 | test ! -s conftest.err |
|
|
12897 | }; then |
|
|
12898 | ac_header_preproc=yes |
|
|
12899 | else |
|
|
12900 | echo "$as_me: failed program was:" >&5 |
|
|
12901 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12902 | |
|
|
12903 | ac_header_preproc=no |
|
|
12904 | fi |
|
|
12905 | |
|
|
12906 | rm -f conftest.err conftest.$ac_ext |
|
|
12907 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12908 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
12909 | |
|
|
12910 | # So? What about this header? |
|
|
12911 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12912 | yes:no: ) |
|
|
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12914 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12916 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12917 | ac_header_preproc=yes |
|
|
12918 | ;; |
|
|
12919 | no:yes:* ) |
|
|
12920 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12921 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12922 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12923 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12924 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12925 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12926 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12927 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12929 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12930 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12931 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12932 | |
|
|
12933 | ;; |
|
|
12934 | esac |
|
|
12935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
12937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
12938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12939 | else |
|
|
12940 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12941 | fi |
|
|
12942 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
12943 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
12944 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
12945 | |
|
|
12946 | fi |
|
|
12947 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12948 | cat >>confdefs.h <<_ACEOF |
|
|
12949 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12950 | _ACEOF |
|
|
12951 | |
|
|
12952 | else |
|
|
12953 | support_xft=no |
|
|
12954 | fi |
|
|
12955 | |
|
|
12956 | done |
|
|
12957 | |
|
|
12958 | |
|
|
12959 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
|
|
12960 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
|
|
12961 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
|
|
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12963 | else |
|
|
12964 | ac_check_lib_save_LIBS=$LIBS |
|
|
12965 | LIBS="-lXft $LIBS" |
|
|
12966 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12967 | /* confdefs.h. */ |
|
|
12968 | _ACEOF |
|
|
12969 | cat confdefs.h >>conftest.$ac_ext |
|
|
12970 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12971 | /* end confdefs.h. */ |
|
|
12972 | |
|
|
12973 | /* Override any GCC internal prototype to avoid an error. |
|
|
12974 | Use char because int might match the return type of a GCC |
|
|
12975 | builtin and then its argument prototype would still apply. */ |
|
|
12976 | #ifdef __cplusplus |
|
|
12977 | extern "C" |
|
|
12978 | #endif |
7632 | #endif |
12979 | char XftDrawString32 (); |
7633 | |
12980 | int |
7634 | int |
12981 | main () |
7635 | main (void) |
12982 | { |
7636 | { |
12983 | return XftDrawString32 (); |
7637 | |
12984 | ; |
7638 | ; |
12985 | return 0; |
7639 | return 0; |
12986 | } |
7640 | } |
12987 | _ACEOF |
7641 | _ACEOF |
12988 | rm -f conftest.$ac_objext conftest$ac_exeext |
7642 | if ac_fn_cxx_try_compile "$LINENO" |
12989 | if { (ac_try="$ac_link" |
7643 | then : |
12990 | case "(($ac_try" in |
|
|
12991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12992 | *) ac_try_echo=$ac_try;; |
|
|
12993 | esac |
|
|
12994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12995 | (eval "$ac_link") 2>conftest.er1 |
|
|
12996 | ac_status=$? |
|
|
12997 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12998 | rm -f conftest.er1 |
|
|
12999 | cat conftest.err >&5 |
|
|
13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13001 | (exit $ac_status); } && { |
|
|
13002 | test -z "$ac_cxx_werror_flag" || |
|
|
13003 | test ! -s conftest.err |
|
|
13004 | } && test -s conftest$ac_exeext && |
|
|
13005 | $as_test_x conftest$ac_exeext; then |
|
|
13006 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
13007 | else |
|
|
13008 | echo "$as_me: failed program was:" >&5 |
|
|
13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13010 | |
7644 | |
13011 | ac_cv_lib_Xft_XftDrawString32=no |
7645 | else $as_nop |
13012 | fi |
|
|
13013 | |
|
|
13014 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
13015 | conftest$ac_exeext conftest.$ac_ext |
|
|
13016 | LIBS=$ac_check_lib_save_LIBS |
|
|
13017 | fi |
|
|
13018 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
13019 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
13020 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
|
|
13021 | cat >>confdefs.h <<_ACEOF |
|
|
13022 | #define HAVE_LIBXFT 1 |
|
|
13023 | _ACEOF |
|
|
13024 | |
|
|
13025 | LIBS="-lXft $LIBS" |
|
|
13026 | |
|
|
13027 | else |
|
|
13028 | support_xft=no |
7646 | support_image=no |
13029 | fi |
7647 | fi |
13030 | |
7648 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
13031 | |
|
|
13032 | if test x$support_xft = xyes; then |
7649 | if test x$support_image = xyes; then |
|
|
7650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7651 | printf "%s\n" "ok" >&6; } |
|
|
7652 | LIBS="$LIBS -lm" |
13033 | |
7653 | |
13034 | cat >>confdefs.h <<\_ACEOF |
7654 | printf "%s\n" "#define XRENDER 1" >>confdefs.h |
13035 | #define XFT 1 |
|
|
13036 | _ACEOF |
|
|
13037 | |
7655 | |
|
|
7656 | |
|
|
7657 | if test x$support_inheritpixmap = xyes; then |
|
|
7658 | |
|
|
7659 | printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7660 | |
13038 | fi |
7661 | fi |
|
|
7662 | else |
|
|
7663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7664 | printf "%s\n" "no" >&6; } |
|
|
7665 | fi |
13039 | fi |
7666 | fi |
|
|
7667 | |
13040 | if test x$support_styles = xyes; then |
7668 | if test x$support_styles = xyes; then |
13041 | |
7669 | |
13042 | cat >>confdefs.h <<\_ACEOF |
7670 | printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h |
13043 | #define ENABLE_STYLES 1 |
|
|
13044 | _ACEOF |
|
|
13045 | |
7671 | |
13046 | fi |
7672 | fi |
13047 | if test x$support_iso14755 = xyes; then |
7673 | if test x$support_iso14755 = xyes; then |
13048 | |
7674 | |
13049 | cat >>confdefs.h <<\_ACEOF |
7675 | printf "%s\n" "#define ISO_14755 1" >>confdefs.h |
13050 | #define ISO_14755 1 |
|
|
13051 | _ACEOF |
|
|
13052 | |
7676 | |
13053 | fi |
7677 | fi |
13054 | if test x$support_8bitctrls = xyes; then |
7678 | if test x$support_8bitctrls = xyes; then |
13055 | |
7679 | |
13056 | cat >>confdefs.h <<\_ACEOF |
7680 | printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h |
13057 | #define EIGHT_BIT_CONTROLS 1 |
|
|
13058 | _ACEOF |
|
|
13059 | |
7681 | |
13060 | fi |
7682 | fi |
13061 | if test x$support_fading = xyes; then |
7683 | if test x$support_fading = xyes; then |
13062 | |
7684 | |
13063 | cat >>confdefs.h <<\_ACEOF |
7685 | printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h |
13064 | #define OFF_FOCUS_FADING 1 |
|
|
13065 | _ACEOF |
|
|
13066 | |
|
|
13067 | fi |
|
|
13068 | if test x$support_tinting = xyes; then |
|
|
13069 | |
|
|
13070 | cat >>confdefs.h <<\_ACEOF |
|
|
13071 | #define TINTING 1 |
|
|
13072 | _ACEOF |
|
|
13073 | |
|
|
13074 | fi |
|
|
13075 | if test x$support_inheritpixmap = xyes; then |
|
|
13076 | |
|
|
13077 | cat >>confdefs.h <<\_ACEOF |
|
|
13078 | #define ENABLE_TRANSPARENCY 1 |
|
|
13079 | _ACEOF |
|
|
13080 | |
7686 | |
13081 | fi |
7687 | fi |
13082 | if test x$support_keepscrolling = xno; then |
7688 | if test x$support_keepscrolling = xno; then |
13083 | |
7689 | |
13084 | cat >>confdefs.h <<\_ACEOF |
|
|
13085 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
7690 | printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
13086 | _ACEOF |
|
|
13087 | |
7691 | |
13088 | fi |
7692 | fi |
13089 | if test x$support_selectionscrolling = xyes; then |
7693 | if test x$support_selectionscrolling = xyes; then |
13090 | |
7694 | |
13091 | cat >>confdefs.h <<\_ACEOF |
7695 | printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h |
13092 | #define SELECTION_SCROLLING 1 |
7696 | |
13093 | _ACEOF |
7697 | fi |
|
|
7698 | if test x$support_frills = xyes; then |
|
|
7699 | |
|
|
7700 | printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h |
13094 | |
7701 | |
13095 | fi |
7702 | fi |
13096 | if test x$support_mousewheel = xyes; then |
7703 | if test x$support_mousewheel = xyes; then |
13097 | |
7704 | |
13098 | cat >>confdefs.h <<\_ACEOF |
7705 | printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h |
13099 | #define MOUSE_WHEEL 1 |
|
|
13100 | _ACEOF |
|
|
13101 | |
7706 | |
13102 | fi |
7707 | fi |
13103 | if test x$support_mouseslipwheel = xyes; then |
7708 | if test x$support_mouseslipwheel = xyes; then |
13104 | |
7709 | |
13105 | cat >>confdefs.h <<\_ACEOF |
7710 | printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h |
13106 | #define MOUSE_SLIP_WHEELING 1 |
|
|
13107 | _ACEOF |
|
|
13108 | |
7711 | |
13109 | fi |
7712 | fi |
13110 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13111 | |
7713 | |
13112 | cat >>confdefs.h <<\_ACEOF |
7714 | scrolltypes=plain |
13113 | #define XPM_BACKGROUND 1 |
|
|
13114 | _ACEOF |
|
|
13115 | |
7715 | |
13116 | fi |
7716 | printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h |
13117 | |
|
|
13118 | if test x$support_afterimage = xyes; then |
|
|
13119 | |
|
|
13120 | cat >>confdefs.h <<\_ACEOF |
|
|
13121 | #define HAVE_AFTERIMAGE 1 |
|
|
13122 | _ACEOF |
|
|
13123 | |
|
|
13124 | fi |
|
|
13125 | |
7717 | |
13126 | |
7718 | |
13127 | if test x$support_scroll_rxvt = xyes; then |
7719 | if test x$support_scroll_rxvt = xyes; then |
13128 | |
7720 | |
13129 | cat >>confdefs.h <<\_ACEOF |
7721 | printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h |
13130 | #define RXVT_SCROLLBAR 1 |
|
|
13131 | _ACEOF |
|
|
13132 | |
7722 | |
13133 | scrolltypes="rxvt" |
7723 | scrolltypes="$scrolltypes rxvt" |
13134 | fi |
7724 | fi |
13135 | if test x$support_scroll_next = xyes; then |
7725 | if test x$support_scroll_next = xyes; then |
13136 | |
7726 | |
13137 | cat >>confdefs.h <<\_ACEOF |
7727 | printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h |
13138 | #define NEXT_SCROLLBAR 1 |
|
|
13139 | _ACEOF |
|
|
13140 | |
7728 | |
13141 | scrolltypes="$scrolltypes next" |
7729 | scrolltypes="$scrolltypes next" |
13142 | fi |
7730 | fi |
13143 | if test x$support_scroll_xterm = xyes; then |
7731 | if test x$support_scroll_xterm = xyes; then |
13144 | |
7732 | |
13145 | cat >>confdefs.h <<\_ACEOF |
7733 | printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h |
13146 | #define XTERM_SCROLLBAR 1 |
|
|
13147 | _ACEOF |
|
|
13148 | |
7734 | |
13149 | scrolltypes="$scrolltypes xterm" |
7735 | scrolltypes="$scrolltypes xterm" |
13150 | fi |
7736 | fi |
13151 | if test x$support_scroll_plain = xyes; then |
|
|
13152 | |
|
|
13153 | cat >>confdefs.h <<\_ACEOF |
|
|
13154 | #define PLAIN_SCROLLBAR 1 |
|
|
13155 | _ACEOF |
|
|
13156 | |
|
|
13157 | scrolltypes="$scrolltypes plain" |
|
|
13158 | fi |
|
|
13159 | if test x$support_pointer_blank = xyes; then |
7737 | if test x$support_pointer_blank = xyes; then |
13160 | |
7738 | |
13161 | cat >>confdefs.h <<\_ACEOF |
7739 | printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h |
13162 | #define POINTER_BLANK 1 |
|
|
13163 | _ACEOF |
|
|
13164 | |
7740 | |
13165 | fi |
7741 | fi |
13166 | if test x$support_text_blink = xyes; then |
7742 | if test x$support_text_blink = xyes; then |
13167 | |
7743 | |
13168 | cat >>confdefs.h <<\_ACEOF |
7744 | printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h |
13169 | #define TEXT_BLINK 1 |
|
|
13170 | _ACEOF |
|
|
13171 | |
7745 | |
13172 | fi |
7746 | fi |
13173 | if test x$support_unicode3 = xyes; then |
7747 | if test x$support_unicode3 = xyes; then |
13174 | |
7748 | |
13175 | cat >>confdefs.h <<\_ACEOF |
7749 | printf "%s\n" "#define UNICODE_3 1" >>confdefs.h |
13176 | #define UNICODE_3 1 |
|
|
13177 | _ACEOF |
|
|
13178 | |
7750 | |
13179 | fi |
7751 | fi |
13180 | if test x$support_combining = xyes; then |
7752 | if test x$support_combining = xyes; then |
13181 | |
7753 | |
13182 | cat >>confdefs.h <<\_ACEOF |
7754 | printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h |
13183 | #define ENABLE_COMBINING 1 |
|
|
13184 | _ACEOF |
|
|
13185 | |
7755 | |
13186 | fi |
7756 | fi |
13187 | if test x$codesets = xall; then |
7757 | if test x$codesets = xall; then |
13188 | codesets=jp,jp-ext,kr,zh,zh-ext |
7758 | codesets=jp,jp-ext,kr,zh,zh-ext |
13189 | fi |
7759 | fi |
13190 | |
7760 | |
13191 | cat >>confdefs.h <<\_ACEOF |
7761 | printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h |
13192 | #define ENCODING_EU 1 |
|
|
13193 | _ACEOF |
|
|
13194 | |
7762 | |
13195 | |
7763 | |
13196 | cat >>confdefs.h <<\_ACEOF |
7764 | printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h |
13197 | #define ENCODING_VN 1 |
|
|
13198 | _ACEOF |
|
|
13199 | |
7765 | |
13200 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
7766 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
13201 | case "$codeset" in |
7767 | case "$codeset" in |
13202 | JP ) |
7768 | JP ) |
13203 | cat >>confdefs.h <<\_ACEOF |
7769 | printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h |
13204 | #define ENCODING_JP 1 |
|
|
13205 | _ACEOF |
|
|
13206 | ;; |
7770 | ;; |
13207 | JP_EXT ) |
7771 | JP_EXT ) |
13208 | cat >>confdefs.h <<\_ACEOF |
7772 | printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h |
13209 | #define ENCODING_JP_EXT 1 |
|
|
13210 | _ACEOF |
|
|
13211 | ;; |
7773 | ;; |
13212 | KR ) |
7774 | KR ) |
13213 | cat >>confdefs.h <<\_ACEOF |
7775 | printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h |
13214 | #define ENCODING_KR 1 |
|
|
13215 | _ACEOF |
|
|
13216 | ;; |
7776 | ;; |
13217 | ZH ) |
7777 | ZH ) |
13218 | cat >>confdefs.h <<\_ACEOF |
7778 | printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h |
13219 | #define ENCODING_ZH 1 |
|
|
13220 | _ACEOF |
|
|
13221 | ;; |
7779 | ;; |
13222 | ZH_EXT ) |
7780 | ZH_EXT ) |
13223 | cat >>confdefs.h <<\_ACEOF |
7781 | printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h |
13224 | #define ENCODING_ZH_EXT 1 |
|
|
13225 | _ACEOF |
|
|
13226 | ;; |
7782 | ;; |
13227 | esac |
7783 | esac |
13228 | done |
7784 | done |
13229 | |
7785 | |
13230 | IF_PERL=\# |
7786 | IF_PERL=\# |
13231 | if test x$support_perl = xyes; then |
7787 | if test x$support_perl = xyes; then |
13232 | # Extract the first word of "perl5", so it can be a program name with args. |
7788 | # Extract the first word of "perl5", so it can be a program name with args. |
13233 | set dummy perl5; ac_word=$2 |
7789 | set dummy perl5; ac_word=$2 |
13234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7791 | printf %s "checking for $ac_word... " >&6; } |
13236 | if test "${ac_cv_path_PERL+set}" = set; then |
7792 | if test ${ac_cv_path_PERL+y} |
13237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7793 | then : |
13238 | else |
7794 | printf %s "(cached) " >&6 |
|
|
7795 | else $as_nop |
13239 | case $PERL in |
7796 | case $PERL in |
13240 | [\\/]* | ?:[\\/]*) |
7797 | [\\/]* | ?:[\\/]*) |
13241 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
7798 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
13242 | ;; |
7799 | ;; |
13243 | *) |
7800 | *) |
13244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13245 | for as_dir in $PATH |
7802 | for as_dir in $PATH |
13246 | do |
7803 | do |
13247 | IFS=$as_save_IFS |
7804 | IFS=$as_save_IFS |
13248 | test -z "$as_dir" && as_dir=. |
7805 | case $as_dir in #((( |
|
|
7806 | '') as_dir=./ ;; |
|
|
7807 | */) ;; |
|
|
7808 | *) as_dir=$as_dir/ ;; |
|
|
7809 | esac |
13249 | for ac_exec_ext in '' $ac_executable_extensions; do |
7810 | for ac_exec_ext in '' $ac_executable_extensions; do |
13250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7811 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
13251 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
7812 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" |
13252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7813 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
13253 | break 2 |
7814 | break 2 |
13254 | fi |
7815 | fi |
13255 | done |
7816 | done |
13256 | done |
7817 | done |
13257 | IFS=$as_save_IFS |
7818 | IFS=$as_save_IFS |
13258 | |
7819 | |
|
|
7820 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
13259 | ;; |
7821 | ;; |
13260 | esac |
7822 | esac |
13261 | fi |
7823 | fi |
13262 | PERL=$ac_cv_path_PERL |
7824 | PERL=$ac_cv_path_PERL |
13263 | if test -n "$PERL"; then |
7825 | if test -n "$PERL"; then |
13264 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
7826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
13265 | echo "${ECHO_T}$PERL" >&6; } |
7827 | printf "%s\n" "$PERL" >&6; } |
13266 | else |
7828 | else |
13267 | { echo "$as_me:$LINENO: result: no" >&5 |
7829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13268 | echo "${ECHO_T}no" >&6; } |
7830 | printf "%s\n" "no" >&6; } |
13269 | fi |
7831 | fi |
13270 | |
7832 | |
13271 | |
7833 | |
13272 | # Extract the first word of "perl", so it can be a program name with args. |
7834 | |
13273 | set dummy perl; ac_word=$2 |
7835 | |
13274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5 |
13275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7837 | printf %s "checking for xext (using pkg-config)... " >&6; } |
13276 | if test "${ac_cv_path_PERL+set}" = set; then |
7838 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then |
13277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7839 | XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`" |
|
|
7840 | XEXT_LIBS="`$PKG_CONFIG --libs xext`" |
|
|
7841 | |
|
|
7842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
|
7843 | printf "%s\n" "ok" >&6; } |
|
|
7844 | : |
13278 | else |
7845 | else |
13279 | case $PERL in |
7846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13280 | [\\/]* | ?:[\\/]*) |
7847 | printf "%s\n" "no" >&6; } |
13281 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13282 | ;; |
|
|
13283 | *) |
|
|
13284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13285 | for as_dir in $PATH |
|
|
13286 | do |
|
|
13287 | IFS=$as_save_IFS |
|
|
13288 | test -z "$as_dir" && as_dir=. |
|
|
13289 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
13291 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13293 | break 2 |
|
|
13294 | fi |
|
|
13295 | done |
|
|
13296 | done |
|
|
13297 | IFS=$as_save_IFS |
|
|
13298 | |
7848 | |
13299 | ;; |
7849 | as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5 |
13300 | esac |
|
|
13301 | fi |
|
|
13302 | PERL=$ac_cv_path_PERL |
|
|
13303 | if test -n "$PERL"; then |
|
|
13304 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13305 | echo "${ECHO_T}$PERL" >&6; } |
|
|
13306 | else |
|
|
13307 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
13308 | echo "${ECHO_T}no" >&6; } |
|
|
13309 | fi |
|
|
13310 | |
7850 | |
|
|
7851 | fi |
13311 | |
7852 | |
13312 | |
7853 | |
|
|
7854 | X_LIBS="$XEXT_LIBS $X_LIBS" |
|
|
7855 | CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS" |
|
|
7856 | |
13313 | { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
7857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5 |
13314 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } |
7858 | printf %s "checking for $PERL suitability... " >&6; } |
13315 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
7859 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
13316 | |
7860 | |
13317 | save_CXXFLAGS="$CXXFLAGS" |
7861 | save_CXXFLAGS="$CXXFLAGS" |
13318 | save_LIBS="$LIBS" |
7862 | save_LIBS="$LIBS" |
13319 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
7863 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
13320 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
7864 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
13321 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13322 | /* confdefs.h. */ |
|
|
13323 | _ACEOF |
|
|
13324 | cat confdefs.h >>conftest.$ac_ext |
7865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13325 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13326 | /* end confdefs.h. */ |
7866 | /* end confdefs.h. */ |
13327 | |
7867 | |
13328 | #include <EXTERN.h> |
7868 | #include <EXTERN.h> |
13329 | #include <perl.h> |
7869 | #include <perl.h> |
13330 | #include <XSUB.h> |
7870 | #include <XSUB.h> |
13331 | |
7871 | |
13332 | int |
7872 | int |
13333 | main () |
7873 | main (void) |
13334 | { |
7874 | { |
13335 | |
7875 | |
13336 | PerlInterpreter *perl = perl_alloc (); |
7876 | PerlInterpreter *perl = perl_alloc (); |
13337 | |
7877 | |
13338 | ; |
7878 | ; |
13339 | return 0; |
7879 | return 0; |
13340 | } |
7880 | } |
13341 | _ACEOF |
7881 | _ACEOF |
13342 | rm -f conftest.$ac_objext conftest$ac_exeext |
7882 | if ac_fn_cxx_try_link "$LINENO" |
13343 | if { (ac_try="$ac_link" |
7883 | then : |
13344 | case "(($ac_try" in |
|
|
13345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
13346 | *) ac_try_echo=$ac_try;; |
|
|
13347 | esac |
|
|
13348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
13349 | (eval "$ac_link") 2>conftest.er1 |
|
|
13350 | ac_status=$? |
|
|
13351 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13352 | rm -f conftest.er1 |
|
|
13353 | cat conftest.err >&5 |
|
|
13354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13355 | (exit $ac_status); } && { |
|
|
13356 | test -z "$ac_cxx_werror_flag" || |
|
|
13357 | test ! -s conftest.err |
|
|
13358 | } && test -s conftest$ac_exeext && |
|
|
13359 | $as_test_x conftest$ac_exeext; then |
|
|
13360 | rxvt_perl_link=yes |
7884 | rxvt_perl_link=yes |
13361 | else |
7885 | else $as_nop |
13362 | echo "$as_me: failed program was:" >&5 |
|
|
13363 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13364 | |
|
|
13365 | rxvt_perl_link=no |
7886 | rxvt_perl_link=no |
13366 | fi |
7887 | fi |
13367 | |
|
|
13368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7888 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
13369 | conftest$ac_exeext conftest.$ac_ext |
7889 | conftest$ac_exeext conftest.$ac_ext |
13370 | CXXFLAGS="$save_CXXFLAGS" |
7890 | CXXFLAGS="$save_CXXFLAGS" |
13371 | LIBS="$save_LIBS" |
7891 | LIBS="$save_LIBS" |
13372 | |
7892 | |
13373 | if test x$rxvt_perl_link = xyes; then |
7893 | if test x$rxvt_perl_link = xyes; then |
13374 | { echo "$as_me:$LINENO: result: ok" >&5 |
7894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
13375 | echo "${ECHO_T}ok" >&6; } |
7895 | printf "%s\n" "ok" >&6; } |
13376 | |
7896 | |
13377 | cat >>confdefs.h <<\_ACEOF |
7897 | printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h |
13378 | #define ENABLE_PERL 1 |
|
|
13379 | _ACEOF |
|
|
13380 | |
7898 | |
13381 | IF_PERL= |
7899 | IF_PERL= |
13382 | PERL_O=rxvtperl.o |
7900 | PERL_O=rxvtperl.o |
13383 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
7901 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
13384 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
7902 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
13385 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
7903 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
13386 | else |
7904 | else |
13387 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
7905 | as_fn_error $? "no, unable to link" "$LINENO" 5 |
13388 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13389 | { (exit 1); exit 1; }; } |
|
|
13390 | fi |
7906 | fi |
13391 | else |
7907 | else |
13392 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
7908 | as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5 |
13393 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13394 | { (exit 1); exit 1; }; } |
|
|
13395 | fi |
7909 | fi |
13396 | fi |
7910 | fi |
13397 | |
7911 | |
13398 | |
7912 | |
13399 | |
7913 | |
13400 | |
7914 | |
13401 | |
7915 | |
13402 | |
7916 | |
13403 | |
7917 | |
13404 | if test x$support_perl = xyes; then |
|
|
13405 | support_frills=yes |
|
|
13406 | fi |
|
|
13407 | |
7918 | |
13408 | if test x$support_frills = xyes; then |
|
|
13409 | |
|
|
13410 | cat >>confdefs.h <<\_ACEOF |
|
|
13411 | #define ENABLE_FRILLS 1 |
|
|
13412 | _ACEOF |
|
|
13413 | |
|
|
13414 | fi |
|
|
13415 | |
|
|
13416 | |
|
|
13417 | |
|
|
13418 | |
|
|
13419 | |
|
|
13420 | |
|
|
13421 | |
|
|
13422 | |
|
|
13423 | |
|
|
13424 | |
|
|
13425 | |
|
|
13426 | |
|
|
13427 | |
|
|
13428 | test "$program_prefix" != NONE && |
|
|
13429 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
|
13430 | # Use a double $ so make ignores it. |
|
|
13431 | test "$program_suffix" != NONE && |
|
|
13432 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
|
13433 | # Double any \ or $. echo might interpret backslashes. |
|
|
13434 | # By default was `s,x,x', remove it if useless. |
|
|
13435 | cat <<\_ACEOF >conftest.sed |
|
|
13436 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13437 | _ACEOF |
|
|
13438 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13439 | rm -f conftest.sed |
|
|
13440 | |
|
|
13441 | |
|
|
13442 | |
|
|
13443 | |
|
|
13444 | |
|
|
13445 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13446 | include_stdint_h="#include <stdint.h>" |
|
|
13447 | else |
|
|
13448 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13449 | fi |
|
|
13450 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13451 | include_stdarg_h="#include <cstdarg>" |
|
|
13452 | else |
|
|
13453 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13454 | fi |
|
|
13455 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13456 | include_stdlib_h="#include <cstdlib>" |
|
|
13457 | else |
|
|
13458 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13459 | fi |
|
|
13460 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13461 | include_unistd_h="#include <unistd.h>" |
|
|
13462 | else |
|
|
13463 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13464 | fi |
|
|
13465 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13466 | include_string_h="#include <cstring>" |
|
|
13467 | else |
|
|
13468 | include_string_h="/* #include <cstring> */" |
|
|
13469 | fi |
|
|
13470 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13471 | include_fcntl_h="#include <fcntl.h>" |
|
|
13472 | else |
|
|
13473 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13474 | fi |
|
|
13475 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13476 | include_util_h="#include <util.h>" |
|
|
13477 | else |
|
|
13478 | include_util_h="/* #include <util.h> */" |
|
|
13479 | fi |
|
|
13480 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13481 | include_assert_h="#include <assert.h>" |
|
|
13482 | else |
|
|
13483 | include_assert_h="/* #include <assert.h> */" |
|
|
13484 | fi |
|
|
13485 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13486 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13487 | else |
|
|
13488 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13489 | fi |
|
|
13490 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13491 | include_sys_select_h="#include <sys/select.h>" |
|
|
13492 | else |
|
|
13493 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13494 | fi |
|
|
13495 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13496 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13497 | else |
|
|
13498 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13499 | fi |
|
|
13500 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13501 | include_sys_time_h="#include <sys/time.h>" |
|
|
13502 | else |
|
|
13503 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13504 | fi |
|
|
13505 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13506 | include_time_h="#include <time.h>" |
|
|
13507 | else |
|
|
13508 | include_time_h="/* #include <time.h> */" |
|
|
13509 | fi |
|
|
13510 | |
|
|
13511 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
7919 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13512 | |
7920 | |
13513 | cat >confcache <<\_ACEOF |
7921 | cat >confcache <<\_ACEOF |
13514 | # This file is a shell script that caches the results of configure |
7922 | # This file is a shell script that caches the results of configure |
13515 | # tests run on this system so they can be shared between configure |
7923 | # tests run on this system so they can be shared between configure |
13516 | # scripts and configure runs, see configure's option --config-cache. |
7924 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13535 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
7943 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
13536 | eval ac_val=\$$ac_var |
7944 | eval ac_val=\$$ac_var |
13537 | case $ac_val in #( |
7945 | case $ac_val in #( |
13538 | *${as_nl}*) |
7946 | *${as_nl}*) |
13539 | case $ac_var in #( |
7947 | case $ac_var in #( |
13540 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
7948 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
13541 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
7949 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13542 | esac |
7950 | esac |
13543 | case $ac_var in #( |
7951 | case $ac_var in #( |
13544 | _ | IFS | as_nl) ;; #( |
7952 | _ | IFS | as_nl) ;; #( |
13545 | *) $as_unset $ac_var ;; |
7953 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
7954 | *) { eval $ac_var=; unset $ac_var;} ;; |
13546 | esac ;; |
7955 | esac ;; |
13547 | esac |
7956 | esac |
13548 | done |
7957 | done |
13549 | |
7958 | |
13550 | (set) 2>&1 | |
7959 | (set) 2>&1 | |
13551 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7960 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13552 | *${as_nl}ac_space=\ *) |
7961 | *${as_nl}ac_space=\ *) |
13553 | # `set' does not quote correctly, so add quotes (double-quote |
7962 | # `set' does not quote correctly, so add quotes: double-quote |
13554 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
7963 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
13555 | sed -n \ |
7964 | sed -n \ |
13556 | "s/'/'\\\\''/g; |
7965 | "s/'/'\\\\''/g; |
13557 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7966 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13558 | ;; #( |
7967 | ;; #( |
13559 | *) |
7968 | *) |
… | |
… | |
13565 | ) | |
7974 | ) | |
13566 | sed ' |
7975 | sed ' |
13567 | /^ac_cv_env_/b end |
7976 | /^ac_cv_env_/b end |
13568 | t clear |
7977 | t clear |
13569 | :clear |
7978 | :clear |
13570 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7979 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
13571 | t end |
7980 | t end |
13572 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7981 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13573 | :end' >>confcache |
7982 | :end' >>confcache |
13574 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7983 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13575 | if test -w "$cache_file"; then |
7984 | if test -w "$cache_file"; then |
13576 | test "x$cache_file" != "x/dev/null" && |
7985 | if test "x$cache_file" != "x/dev/null"; then |
13577 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
7986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13578 | echo "$as_me: updating cache $cache_file" >&6;} |
7987 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
|
|
7988 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13579 | cat confcache >$cache_file |
7989 | cat confcache >"$cache_file" |
|
|
7990 | else |
|
|
7991 | case $cache_file in #( |
|
|
7992 | */* | ?:*) |
|
|
7993 | mv -f confcache "$cache_file"$$ && |
|
|
7994 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
|
7995 | *) |
|
|
7996 | mv -f confcache "$cache_file" ;; |
|
|
7997 | esac |
|
|
7998 | fi |
|
|
7999 | fi |
13580 | else |
8000 | else |
13581 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
8001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13582 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
8002 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
13583 | fi |
8003 | fi |
13584 | fi |
8004 | fi |
13585 | rm -f confcache |
8005 | rm -f confcache |
13586 | |
8006 | |
13587 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8007 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
13590 | |
8010 | |
13591 | DEFS=-DHAVE_CONFIG_H |
8011 | DEFS=-DHAVE_CONFIG_H |
13592 | |
8012 | |
13593 | ac_libobjs= |
8013 | ac_libobjs= |
13594 | ac_ltlibobjs= |
8014 | ac_ltlibobjs= |
|
|
8015 | U= |
13595 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8016 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13596 | # 1. Remove the extension, and $U if already installed. |
8017 | # 1. Remove the extension, and $U if already installed. |
13597 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8018 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13598 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
8019 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
13599 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8020 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
13600 | # will be set to the directory where LIBOBJS objects are built. |
8021 | # will be set to the directory where LIBOBJS objects are built. |
13601 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8022 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13602 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
8023 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
13603 | done |
8024 | done |
13604 | LIBOBJS=$ac_libobjs |
8025 | LIBOBJS=$ac_libobjs |
13605 | |
8026 | |
13606 | LTLIBOBJS=$ac_ltlibobjs |
8027 | LTLIBOBJS=$ac_ltlibobjs |
13607 | |
8028 | |
13608 | |
8029 | |
13609 | |
8030 | |
13610 | : ${CONFIG_STATUS=./config.status} |
8031 | : "${CONFIG_STATUS=./config.status}" |
|
|
8032 | ac_write_fail=0 |
13611 | ac_clean_files_save=$ac_clean_files |
8033 | ac_clean_files_save=$ac_clean_files |
13612 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
8034 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13613 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
8035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
13614 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
8036 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
13615 | cat >$CONFIG_STATUS <<_ACEOF |
8037 | as_write_fail=0 |
|
|
8038 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
13616 | #! $SHELL |
8039 | #! $SHELL |
13617 | # Generated by $as_me. |
8040 | # Generated by $as_me. |
13618 | # Run this file to recreate the current configuration. |
8041 | # Run this file to recreate the current configuration. |
13619 | # Compiler output produced by configure, useful for debugging |
8042 | # Compiler output produced by configure, useful for debugging |
13620 | # configure, is in config.log if it exists. |
8043 | # configure, is in config.log if it exists. |
13621 | |
8044 | |
13622 | debug=false |
8045 | debug=false |
13623 | ac_cs_recheck=false |
8046 | ac_cs_recheck=false |
13624 | ac_cs_silent=false |
8047 | ac_cs_silent=false |
|
|
8048 | |
13625 | SHELL=\${CONFIG_SHELL-$SHELL} |
8049 | SHELL=\${CONFIG_SHELL-$SHELL} |
|
|
8050 | export SHELL |
13626 | _ACEOF |
8051 | _ASEOF |
13627 | |
8052 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
13628 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13629 | ## --------------------- ## |
8053 | ## -------------------- ## |
13630 | ## M4sh Initialization. ## |
8054 | ## M4sh Initialization. ## |
13631 | ## --------------------- ## |
8055 | ## -------------------- ## |
13632 | |
8056 | |
13633 | # Be more Bourne compatible |
8057 | # Be more Bourne compatible |
13634 | DUALCASE=1; export DUALCASE # for MKS sh |
8058 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
8059 | as_nop=: |
13635 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8060 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
8061 | then : |
13636 | emulate sh |
8062 | emulate sh |
13637 | NULLCMD=: |
8063 | NULLCMD=: |
13638 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
8064 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13639 | # is contrary to our usage. Disable this feature. |
8065 | # is contrary to our usage. Disable this feature. |
13640 | alias -g '${1+"$@"}'='"$@"' |
8066 | alias -g '${1+"$@"}'='"$@"' |
13641 | setopt NO_GLOB_SUBST |
8067 | setopt NO_GLOB_SUBST |
13642 | else |
8068 | else $as_nop |
13643 | case `(set -o) 2>/dev/null` in |
8069 | case `(set -o) 2>/dev/null` in #( |
13644 | *posix*) set -o posix ;; |
8070 | *posix*) : |
|
|
8071 | set -o posix ;; #( |
|
|
8072 | *) : |
|
|
8073 | ;; |
13645 | esac |
8074 | esac |
13646 | |
|
|
13647 | fi |
8075 | fi |
13648 | |
8076 | |
13649 | |
8077 | |
13650 | |
8078 | |
|
|
8079 | # Reset variables that may have inherited troublesome values from |
|
|
8080 | # the environment. |
13651 | |
8081 | |
13652 | # PATH needs CR |
|
|
13653 | # Avoid depending upon Character Ranges. |
|
|
13654 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
13655 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
13656 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
13657 | as_cr_digits='0123456789' |
|
|
13658 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
13659 | |
|
|
13660 | # The user is always right. |
|
|
13661 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
13662 | echo "#! /bin/sh" >conf$$.sh |
|
|
13663 | echo "exit 0" >>conf$$.sh |
|
|
13664 | chmod +x conf$$.sh |
|
|
13665 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
13666 | PATH_SEPARATOR=';' |
|
|
13667 | else |
|
|
13668 | PATH_SEPARATOR=: |
|
|
13669 | fi |
|
|
13670 | rm -f conf$$.sh |
|
|
13671 | fi |
|
|
13672 | |
|
|
13673 | # Support unset when possible. |
|
|
13674 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
13675 | as_unset=unset |
|
|
13676 | else |
|
|
13677 | as_unset=false |
|
|
13678 | fi |
|
|
13679 | |
|
|
13680 | |
|
|
13681 | # IFS |
|
|
13682 | # We need space, tab and new line, in precisely that order. Quoting is |
8082 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
8083 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
8084 | # side effect of setting IFS to empty, thus disabling word splitting.) |
13683 | # there to prevent editors from complaining about space-tab. |
8085 | # Quoting is to prevent editors from complaining about space-tab. |
13684 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
13685 | # splitting by setting IFS to empty value.) |
|
|
13686 | as_nl=' |
8086 | as_nl=' |
13687 | ' |
8087 | ' |
|
|
8088 | export as_nl |
13688 | IFS=" "" $as_nl" |
8089 | IFS=" "" $as_nl" |
13689 | |
8090 | |
|
|
8091 | PS1='$ ' |
|
|
8092 | PS2='> ' |
|
|
8093 | PS4='+ ' |
|
|
8094 | |
|
|
8095 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
8096 | LC_ALL=C |
|
|
8097 | export LC_ALL |
|
|
8098 | LANGUAGE=C |
|
|
8099 | export LANGUAGE |
|
|
8100 | |
|
|
8101 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
8102 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
8103 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
8104 | # also avoids known problems related to "unset" and subshell syntax |
|
|
8105 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
8106 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
8107 | do eval test \${$as_var+y} \ |
|
|
8108 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
8109 | done |
|
|
8110 | |
|
|
8111 | # Ensure that fds 0, 1, and 2 are open. |
|
|
8112 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
8113 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
8114 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
8115 | |
|
|
8116 | # The user is always right. |
|
|
8117 | if ${PATH_SEPARATOR+false} :; then |
|
|
8118 | PATH_SEPARATOR=: |
|
|
8119 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
8120 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
8121 | PATH_SEPARATOR=';' |
|
|
8122 | } |
|
|
8123 | fi |
|
|
8124 | |
|
|
8125 | |
13690 | # Find who we are. Look in the path if we contain no directory separator. |
8126 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
8127 | as_myself= |
13691 | case $0 in |
8128 | case $0 in #(( |
13692 | *[\\/]* ) as_myself=$0 ;; |
8129 | *[\\/]* ) as_myself=$0 ;; |
13693 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8130 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13694 | for as_dir in $PATH |
8131 | for as_dir in $PATH |
13695 | do |
8132 | do |
13696 | IFS=$as_save_IFS |
8133 | IFS=$as_save_IFS |
13697 | test -z "$as_dir" && as_dir=. |
8134 | case $as_dir in #((( |
|
|
8135 | '') as_dir=./ ;; |
|
|
8136 | */) ;; |
|
|
8137 | *) as_dir=$as_dir/ ;; |
|
|
8138 | esac |
13698 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
8139 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
13699 | done |
8140 | done |
13700 | IFS=$as_save_IFS |
8141 | IFS=$as_save_IFS |
13701 | |
8142 | |
13702 | ;; |
8143 | ;; |
13703 | esac |
8144 | esac |
13704 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
8145 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
13705 | # in which case we are not to be found in the path. |
8146 | # in which case we are not to be found in the path. |
13706 | if test "x$as_myself" = x; then |
8147 | if test "x$as_myself" = x; then |
13707 | as_myself=$0 |
8148 | as_myself=$0 |
13708 | fi |
8149 | fi |
13709 | if test ! -f "$as_myself"; then |
8150 | if test ! -f "$as_myself"; then |
13710 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
8151 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
13711 | { (exit 1); exit 1; } |
8152 | exit 1 |
13712 | fi |
8153 | fi |
13713 | |
8154 | |
13714 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
13715 | for as_var in ENV MAIL MAILPATH |
|
|
13716 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
13717 | done |
|
|
13718 | PS1='$ ' |
|
|
13719 | PS2='> ' |
|
|
13720 | PS4='+ ' |
|
|
13721 | |
8155 | |
13722 | # NLS nuisances. |
|
|
13723 | for as_var in \ |
|
|
13724 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
|
|
13725 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
|
|
13726 | LC_TELEPHONE LC_TIME |
|
|
13727 | do |
|
|
13728 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
|
|
13729 | eval $as_var=C; export $as_var |
|
|
13730 | else |
|
|
13731 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
13732 | fi |
|
|
13733 | done |
|
|
13734 | |
8156 | |
13735 | # Required to use basename. |
8157 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
8158 | # ---------------------------------------- |
|
|
8159 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
8160 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
8161 | # script with STATUS, using 1 if that was 0. |
|
|
8162 | as_fn_error () |
|
|
8163 | { |
|
|
8164 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
8165 | if test "$4"; then |
|
|
8166 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
8167 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
8168 | fi |
|
|
8169 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
8170 | as_fn_exit $as_status |
|
|
8171 | } # as_fn_error |
|
|
8172 | |
|
|
8173 | |
|
|
8174 | |
|
|
8175 | # as_fn_set_status STATUS |
|
|
8176 | # ----------------------- |
|
|
8177 | # Set $? to STATUS, without forking. |
|
|
8178 | as_fn_set_status () |
|
|
8179 | { |
|
|
8180 | return $1 |
|
|
8181 | } # as_fn_set_status |
|
|
8182 | |
|
|
8183 | # as_fn_exit STATUS |
|
|
8184 | # ----------------- |
|
|
8185 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
8186 | as_fn_exit () |
|
|
8187 | { |
|
|
8188 | set +e |
|
|
8189 | as_fn_set_status $1 |
|
|
8190 | exit $1 |
|
|
8191 | } # as_fn_exit |
|
|
8192 | |
|
|
8193 | # as_fn_unset VAR |
|
|
8194 | # --------------- |
|
|
8195 | # Portably unset VAR. |
|
|
8196 | as_fn_unset () |
|
|
8197 | { |
|
|
8198 | { eval $1=; unset $1;} |
|
|
8199 | } |
|
|
8200 | as_unset=as_fn_unset |
|
|
8201 | |
|
|
8202 | # as_fn_append VAR VALUE |
|
|
8203 | # ---------------------- |
|
|
8204 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
8205 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
8206 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
8207 | # implementations. |
|
|
8208 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
8209 | then : |
|
|
8210 | eval 'as_fn_append () |
|
|
8211 | { |
|
|
8212 | eval $1+=\$2 |
|
|
8213 | }' |
|
|
8214 | else $as_nop |
|
|
8215 | as_fn_append () |
|
|
8216 | { |
|
|
8217 | eval $1=\$$1\$2 |
|
|
8218 | } |
|
|
8219 | fi # as_fn_append |
|
|
8220 | |
|
|
8221 | # as_fn_arith ARG... |
|
|
8222 | # ------------------ |
|
|
8223 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
8224 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
8225 | # must be portable across $(()) and expr. |
|
|
8226 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
8227 | then : |
|
|
8228 | eval 'as_fn_arith () |
|
|
8229 | { |
|
|
8230 | as_val=$(( $* )) |
|
|
8231 | }' |
|
|
8232 | else $as_nop |
|
|
8233 | as_fn_arith () |
|
|
8234 | { |
|
|
8235 | as_val=`expr "$@" || test $? -eq 1` |
|
|
8236 | } |
|
|
8237 | fi # as_fn_arith |
|
|
8238 | |
|
|
8239 | |
13736 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8240 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13737 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
8241 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13738 | as_expr=expr |
8242 | as_expr=expr |
13739 | else |
8243 | else |
13740 | as_expr=false |
8244 | as_expr=false |
… | |
… | |
13744 | as_basename=basename |
8248 | as_basename=basename |
13745 | else |
8249 | else |
13746 | as_basename=false |
8250 | as_basename=false |
13747 | fi |
8251 | fi |
13748 | |
8252 | |
|
|
8253 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
8254 | as_dirname=dirname |
|
|
8255 | else |
|
|
8256 | as_dirname=false |
|
|
8257 | fi |
13749 | |
8258 | |
13750 | # Name of the executable. |
|
|
13751 | as_me=`$as_basename -- "$0" || |
8259 | as_me=`$as_basename -- "$0" || |
13752 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8260 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13753 | X"$0" : 'X\(//\)$' \| \ |
8261 | X"$0" : 'X\(//\)$' \| \ |
13754 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8262 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13755 | echo X/"$0" | |
8263 | printf "%s\n" X/"$0" | |
13756 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8264 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13757 | s//\1/ |
8265 | s//\1/ |
13758 | q |
8266 | q |
13759 | } |
8267 | } |
13760 | /^X\/\(\/\/\)$/{ |
8268 | /^X\/\(\/\/\)$/{ |
… | |
… | |
13765 | s//\1/ |
8273 | s//\1/ |
13766 | q |
8274 | q |
13767 | } |
8275 | } |
13768 | s/.*/./; q'` |
8276 | s/.*/./; q'` |
13769 | |
8277 | |
13770 | # CDPATH. |
8278 | # Avoid depending upon Character Ranges. |
13771 | $as_unset CDPATH |
8279 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
8280 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
8281 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
8282 | as_cr_digits='0123456789' |
|
|
8283 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
13772 | |
8284 | |
13773 | |
8285 | |
13774 | |
8286 | # Determine whether it's possible to make 'echo' print without a newline. |
13775 | as_lineno_1=$LINENO |
8287 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
13776 | as_lineno_2=$LINENO |
8288 | # for compatibility with existing Makefiles. |
13777 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
13778 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
|
13779 | |
|
|
13780 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
13781 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
13782 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
13783 | # does the real work. The second script uses 'N' to pair each |
|
|
13784 | # line-number line with the line containing $LINENO, and appends |
|
|
13785 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
13786 | # case at line end. |
|
|
13787 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
13788 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
13789 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
13790 | sed -n ' |
|
|
13791 | p |
|
|
13792 | /[$]LINENO/= |
|
|
13793 | ' <$as_myself | |
|
|
13794 | sed ' |
|
|
13795 | s/[$]LINENO.*/&-/ |
|
|
13796 | t lineno |
|
|
13797 | b |
|
|
13798 | :lineno |
|
|
13799 | N |
|
|
13800 | :loop |
|
|
13801 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
|
13802 | t loop |
|
|
13803 | s/-\n.*// |
|
|
13804 | ' >$as_me.lineno && |
|
|
13805 | chmod +x "$as_me.lineno" || |
|
|
13806 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
|
13807 | { (exit 1); exit 1; }; } |
|
|
13808 | |
|
|
13809 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
|
13810 | # (the dirname of $[0] is not the place where we might find the |
|
|
13811 | # original and so on. Autoconf is especially sensitive to this). |
|
|
13812 | . "./$as_me.lineno" |
|
|
13813 | # Exit status is that of the last command. |
|
|
13814 | exit |
|
|
13815 | } |
|
|
13816 | |
|
|
13817 | |
|
|
13818 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
13819 | as_dirname=dirname |
|
|
13820 | else |
|
|
13821 | as_dirname=false |
|
|
13822 | fi |
|
|
13823 | |
|
|
13824 | ECHO_C= ECHO_N= ECHO_T= |
8289 | ECHO_C= ECHO_N= ECHO_T= |
13825 | case `echo -n x` in |
8290 | case `echo -n x` in #((((( |
13826 | -n*) |
8291 | -n*) |
13827 | case `echo 'x\c'` in |
8292 | case `echo 'xy\c'` in |
13828 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
8293 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
13829 | *) ECHO_C='\c';; |
8294 | xy) ECHO_C='\c';; |
|
|
8295 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
8296 | ECHO_T=' ';; |
13830 | esac;; |
8297 | esac;; |
13831 | *) |
8298 | *) |
13832 | ECHO_N='-n';; |
8299 | ECHO_N='-n';; |
13833 | esac |
8300 | esac |
13834 | |
8301 | |
13835 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8302 | # For backward compatibility with old third-party macros, we provide |
13836 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
8303 | # the shell variables $as_echo and $as_echo_n. New code should use |
13837 | as_expr=expr |
8304 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
13838 | else |
8305 | as_echo='printf %s\n' |
13839 | as_expr=false |
8306 | as_echo_n='printf %s' |
13840 | fi |
|
|
13841 | |
8307 | |
13842 | rm -f conf$$ conf$$.exe conf$$.file |
8308 | rm -f conf$$ conf$$.exe conf$$.file |
13843 | if test -d conf$$.dir; then |
8309 | if test -d conf$$.dir; then |
13844 | rm -f conf$$.dir/conf$$.file |
8310 | rm -f conf$$.dir/conf$$.file |
13845 | else |
8311 | else |
13846 | rm -f conf$$.dir |
8312 | rm -f conf$$.dir |
13847 | mkdir conf$$.dir |
8313 | mkdir conf$$.dir 2>/dev/null |
13848 | fi |
8314 | fi |
13849 | echo >conf$$.file |
8315 | if (echo >conf$$.file) 2>/dev/null; then |
13850 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
8316 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
13851 | as_ln_s='ln -s' |
8317 | as_ln_s='ln -s' |
13852 | # ... but there are two gotchas: |
8318 | # ... but there are two gotchas: |
13853 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
8319 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13854 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
8320 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
13855 | # In both cases, we have to default to `cp -p'. |
8321 | # In both cases, we have to default to `cp -pR'. |
13856 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8322 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13857 | as_ln_s='cp -p' |
8323 | as_ln_s='cp -pR' |
13858 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8324 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13859 | as_ln_s=ln |
8325 | as_ln_s=ln |
|
|
8326 | else |
|
|
8327 | as_ln_s='cp -pR' |
|
|
8328 | fi |
13860 | else |
8329 | else |
13861 | as_ln_s='cp -p' |
8330 | as_ln_s='cp -pR' |
13862 | fi |
8331 | fi |
13863 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8332 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13864 | rmdir conf$$.dir 2>/dev/null |
8333 | rmdir conf$$.dir 2>/dev/null |
13865 | |
8334 | |
13866 | if mkdir -p . 2>/dev/null; then |
8335 | |
13867 | as_mkdir_p=: |
8336 | # as_fn_mkdir_p |
13868 | else |
8337 | # ------------- |
13869 | test -d ./-p && rmdir ./-p |
8338 | # Create "$as_dir" as a directory, including parents if necessary. |
13870 | as_mkdir_p=false |
8339 | as_fn_mkdir_p () |
13871 | fi |
|
|
13872 | |
|
|
13873 | if test -x / >/dev/null 2>&1; then |
|
|
13874 | as_test_x='test -x' |
|
|
13875 | else |
|
|
13876 | if ls -dL / >/dev/null 2>&1; then |
|
|
13877 | as_ls_L_option=L |
|
|
13878 | else |
|
|
13879 | as_ls_L_option= |
|
|
13880 | fi |
|
|
13881 | as_test_x=' |
|
|
13882 | eval sh -c '\'' |
|
|
13883 | if test -d "$1"; then |
|
|
13884 | test -d "$1/."; |
|
|
13885 | else |
|
|
13886 | case $1 in |
|
|
13887 | -*)set "./$1";; |
|
|
13888 | esac; |
|
|
13889 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
13890 | ???[sx]*):;;*)false;;esac;fi |
|
|
13891 | '\'' sh |
|
|
13892 | ' |
|
|
13893 | fi |
|
|
13894 | as_executable_p=$as_test_x |
|
|
13895 | |
|
|
13896 | # Sed expression to map a string onto a valid CPP name. |
|
|
13897 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
13898 | |
|
|
13899 | # Sed expression to map a string onto a valid variable name. |
|
|
13900 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
13901 | |
|
|
13902 | |
|
|
13903 | exec 6>&1 |
|
|
13904 | |
|
|
13905 | # Save the log message, to keep $[0] and so on meaningful, and to |
|
|
13906 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
13907 | # values after options handling. |
|
|
13908 | ac_log=" |
|
|
13909 | This file was extended by $as_me, which was |
|
|
13910 | generated by GNU Autoconf 2.61. Invocation command line was |
|
|
13911 | |
|
|
13912 | CONFIG_FILES = $CONFIG_FILES |
|
|
13913 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
13914 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
13915 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
13916 | $ $0 $@ |
|
|
13917 | |
|
|
13918 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
13919 | " |
|
|
13920 | |
|
|
13921 | _ACEOF |
|
|
13922 | |
|
|
13923 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13924 | # Files that config.status was made for. |
|
|
13925 | config_files="$ac_config_files" |
|
|
13926 | config_headers="$ac_config_headers" |
|
|
13927 | |
|
|
13928 | _ACEOF |
|
|
13929 | |
|
|
13930 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13931 | ac_cs_usage="\ |
|
|
13932 | \`$as_me' instantiates files from templates according to the |
|
|
13933 | current configuration. |
|
|
13934 | |
|
|
13935 | Usage: $0 [OPTIONS] [FILE]... |
|
|
13936 | |
|
|
13937 | -h, --help print this help, then exit |
|
|
13938 | -V, --version print version number and configuration settings, then exit |
|
|
13939 | -q, --quiet do not print progress messages |
|
|
13940 | -d, --debug don't remove temporary files |
|
|
13941 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
13942 | --file=FILE[:TEMPLATE] |
|
|
13943 | instantiate the configuration file FILE |
|
|
13944 | --header=FILE[:TEMPLATE] |
|
|
13945 | instantiate the configuration header FILE |
|
|
13946 | |
|
|
13947 | Configuration files: |
|
|
13948 | $config_files |
|
|
13949 | |
|
|
13950 | Configuration headers: |
|
|
13951 | $config_headers |
|
|
13952 | |
|
|
13953 | Report bugs to <bug-autoconf@gnu.org>." |
|
|
13954 | |
|
|
13955 | _ACEOF |
|
|
13956 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13957 | ac_cs_version="\\ |
|
|
13958 | config.status |
|
|
13959 | configured by $0, generated by GNU Autoconf 2.61, |
|
|
13960 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
|
13961 | |
|
|
13962 | Copyright (C) 2006 Free Software Foundation, Inc. |
|
|
13963 | This config.status script is free software; the Free Software Foundation |
|
|
13964 | gives unlimited permission to copy, distribute and modify it." |
|
|
13965 | |
|
|
13966 | ac_pwd='$ac_pwd' |
|
|
13967 | srcdir='$srcdir' |
|
|
13968 | INSTALL='$INSTALL' |
|
|
13969 | _ACEOF |
|
|
13970 | |
|
|
13971 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
13972 | # If no file are specified by the user, then we need to provide default |
|
|
13973 | # value. By we need to know if files were specified by the user. |
|
|
13974 | ac_need_defaults=: |
|
|
13975 | while test $# != 0 |
|
|
13976 | do |
|
|
13977 | case $1 in |
|
|
13978 | --*=*) |
|
|
13979 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
13980 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
13981 | ac_shift=: |
|
|
13982 | ;; |
|
|
13983 | *) |
|
|
13984 | ac_option=$1 |
|
|
13985 | ac_optarg=$2 |
|
|
13986 | ac_shift=shift |
|
|
13987 | ;; |
|
|
13988 | esac |
|
|
13989 | |
|
|
13990 | case $ac_option in |
|
|
13991 | # Handling of the options. |
|
|
13992 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
13993 | ac_cs_recheck=: ;; |
|
|
13994 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
13995 | echo "$ac_cs_version"; exit ;; |
|
|
13996 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
13997 | debug=: ;; |
|
|
13998 | --file | --fil | --fi | --f ) |
|
|
13999 | $ac_shift |
|
|
14000 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
|
|
14001 | ac_need_defaults=false;; |
|
|
14002 | --header | --heade | --head | --hea ) |
|
|
14003 | $ac_shift |
|
|
14004 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
|
14005 | ac_need_defaults=false;; |
|
|
14006 | --he | --h) |
|
|
14007 | # Conflict between --help and --header |
|
|
14008 | { echo "$as_me: error: ambiguous option: $1 |
|
|
14009 | Try \`$0 --help' for more information." >&2 |
|
|
14010 | { (exit 1); exit 1; }; };; |
|
|
14011 | --help | --hel | -h ) |
|
|
14012 | echo "$ac_cs_usage"; exit ;; |
|
|
14013 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
14014 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
14015 | ac_cs_silent=: ;; |
|
|
14016 | |
|
|
14017 | # This is an error. |
|
|
14018 | -*) { echo "$as_me: error: unrecognized option: $1 |
|
|
14019 | Try \`$0 --help' for more information." >&2 |
|
|
14020 | { (exit 1); exit 1; }; } ;; |
|
|
14021 | |
|
|
14022 | *) ac_config_targets="$ac_config_targets $1" |
|
|
14023 | ac_need_defaults=false ;; |
|
|
14024 | |
|
|
14025 | esac |
|
|
14026 | shift |
|
|
14027 | done |
|
|
14028 | |
|
|
14029 | ac_configure_extra_args= |
|
|
14030 | |
|
|
14031 | if $ac_cs_silent; then |
|
|
14032 | exec 6>/dev/null |
|
|
14033 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
14034 | fi |
|
|
14035 | |
|
|
14036 | _ACEOF |
|
|
14037 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14038 | if \$ac_cs_recheck; then |
|
|
14039 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
14040 | CONFIG_SHELL=$SHELL |
|
|
14041 | export CONFIG_SHELL |
|
|
14042 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
14043 | fi |
|
|
14044 | |
|
|
14045 | _ACEOF |
|
|
14046 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14047 | exec 5>>config.log |
|
|
14048 | { |
8340 | { |
14049 | echo |
|
|
14050 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
14051 | ## Running $as_me. ## |
|
|
14052 | _ASBOX |
|
|
14053 | echo "$ac_log" |
|
|
14054 | } >&5 |
|
|
14055 | |
8341 | |
14056 | _ACEOF |
|
|
14057 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14058 | _ACEOF |
|
|
14059 | |
|
|
14060 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14061 | |
|
|
14062 | # Handling of arguments. |
|
|
14063 | for ac_config_target in $ac_config_targets |
|
|
14064 | do |
|
|
14065 | case $ac_config_target in |
|
|
14066 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
|
|
14067 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
14068 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
14069 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
14070 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14071 | |
|
|
14072 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
|
14073 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
|
14074 | { (exit 1); exit 1; }; };; |
|
|
14075 | esac |
|
|
14076 | done |
|
|
14077 | |
|
|
14078 | |
|
|
14079 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
14080 | # then the envvar interface is used. Set only those that are not. |
|
|
14081 | # We use the long form for the default assignment because of an extremely |
|
|
14082 | # bizarre bug on SunOS 4.1.3. |
|
|
14083 | if $ac_need_defaults; then |
|
|
14084 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
|
14085 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
|
14086 | fi |
|
|
14087 | |
|
|
14088 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
14089 | # simply because there is no reason against having it here, and in addition, |
|
|
14090 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
14091 | # Hook for its removal unless debugging. |
|
|
14092 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
14093 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
14094 | $debug || |
|
|
14095 | { |
|
|
14096 | tmp= |
|
|
14097 | trap 'exit_status=$? |
|
|
14098 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
|
14099 | ' 0 |
|
|
14100 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
14101 | } |
|
|
14102 | # Create a (secure) tmp directory for tmp files. |
|
|
14103 | |
|
|
14104 | { |
|
|
14105 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
14106 | test -n "$tmp" && test -d "$tmp" |
|
|
14107 | } || |
|
|
14108 | { |
|
|
14109 | tmp=./conf$$-$RANDOM |
|
|
14110 | (umask 077 && mkdir "$tmp") |
|
|
14111 | } || |
|
|
14112 | { |
|
|
14113 | echo "$me: cannot create a temporary directory in ." >&2 |
|
|
14114 | { (exit 1); exit 1; } |
|
|
14115 | } |
|
|
14116 | |
|
|
14117 | # |
|
|
14118 | # Set up the sed scripts for CONFIG_FILES section. |
|
|
14119 | # |
|
|
14120 | |
|
|
14121 | # No need to generate the scripts if there are no CONFIG_FILES. |
|
|
14122 | # This happens for instance when ./config.status config.h |
|
|
14123 | if test -n "$CONFIG_FILES"; then |
|
|
14124 | |
|
|
14125 | _ACEOF |
|
|
14126 | |
|
|
14127 | |
|
|
14128 | |
|
|
14129 | ac_delim='%!_!# ' |
|
|
14130 | for ac_last_try in false false false false false :; do |
|
|
14131 | cat >conf$$subs.sed <<_ACEOF |
|
|
14132 | SHELL!$SHELL$ac_delim |
|
|
14133 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
|
|
14134 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
|
|
14135 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
|
|
14136 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
|
|
14137 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
|
|
14138 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
|
|
14139 | exec_prefix!$exec_prefix$ac_delim |
|
|
14140 | prefix!$prefix$ac_delim |
|
|
14141 | program_transform_name!$program_transform_name$ac_delim |
|
|
14142 | bindir!$bindir$ac_delim |
|
|
14143 | sbindir!$sbindir$ac_delim |
|
|
14144 | libexecdir!$libexecdir$ac_delim |
|
|
14145 | datarootdir!$datarootdir$ac_delim |
|
|
14146 | datadir!$datadir$ac_delim |
|
|
14147 | sysconfdir!$sysconfdir$ac_delim |
|
|
14148 | sharedstatedir!$sharedstatedir$ac_delim |
|
|
14149 | localstatedir!$localstatedir$ac_delim |
|
|
14150 | includedir!$includedir$ac_delim |
|
|
14151 | oldincludedir!$oldincludedir$ac_delim |
|
|
14152 | docdir!$docdir$ac_delim |
|
|
14153 | infodir!$infodir$ac_delim |
|
|
14154 | htmldir!$htmldir$ac_delim |
|
|
14155 | dvidir!$dvidir$ac_delim |
|
|
14156 | pdfdir!$pdfdir$ac_delim |
|
|
14157 | psdir!$psdir$ac_delim |
|
|
14158 | libdir!$libdir$ac_delim |
|
|
14159 | localedir!$localedir$ac_delim |
|
|
14160 | mandir!$mandir$ac_delim |
|
|
14161 | DEFS!$DEFS$ac_delim |
|
|
14162 | ECHO_C!$ECHO_C$ac_delim |
|
|
14163 | ECHO_N!$ECHO_N$ac_delim |
|
|
14164 | ECHO_T!$ECHO_T$ac_delim |
|
|
14165 | LIBS!$LIBS$ac_delim |
|
|
14166 | build_alias!$build_alias$ac_delim |
|
|
14167 | host_alias!$host_alias$ac_delim |
|
|
14168 | target_alias!$target_alias$ac_delim |
|
|
14169 | build!$build$ac_delim |
|
|
14170 | build_cpu!$build_cpu$ac_delim |
|
|
14171 | build_vendor!$build_vendor$ac_delim |
|
|
14172 | build_os!$build_os$ac_delim |
|
|
14173 | host!$host$ac_delim |
|
|
14174 | host_cpu!$host_cpu$ac_delim |
|
|
14175 | host_vendor!$host_vendor$ac_delim |
|
|
14176 | host_os!$host_os$ac_delim |
|
|
14177 | VERSION!$VERSION$ac_delim |
|
|
14178 | DATE!$DATE$ac_delim |
|
|
14179 | LSMDATE!$LSMDATE$ac_delim |
|
|
14180 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14181 | CC!$CC$ac_delim |
|
|
14182 | CFLAGS!$CFLAGS$ac_delim |
|
|
14183 | LDFLAGS!$LDFLAGS$ac_delim |
|
|
14184 | CPPFLAGS!$CPPFLAGS$ac_delim |
|
|
14185 | ac_ct_CC!$ac_ct_CC$ac_delim |
|
|
14186 | EXEEXT!$EXEEXT$ac_delim |
|
|
14187 | OBJEXT!$OBJEXT$ac_delim |
|
|
14188 | CXX!$CXX$ac_delim |
|
|
14189 | CXXFLAGS!$CXXFLAGS$ac_delim |
|
|
14190 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
|
|
14191 | CPP!$CPP$ac_delim |
|
|
14192 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
|
|
14193 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
|
|
14194 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
|
|
14195 | GREP!$GREP$ac_delim |
|
|
14196 | EGREP!$EGREP$ac_delim |
|
|
14197 | LINKER!$LINKER$ac_delim |
|
|
14198 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14199 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14200 | TIC!$TIC$ac_delim |
|
|
14201 | XMKMF!$XMKMF$ac_delim |
|
|
14202 | CXXCPP!$CXXCPP$ac_delim |
|
|
14203 | X_CFLAGS!$X_CFLAGS$ac_delim |
|
|
14204 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
|
|
14205 | X_LIBS!$X_LIBS$ac_delim |
|
|
14206 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
|
|
14207 | afterimage_config!$afterimage_config$ac_delim |
|
|
14208 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14209 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14210 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14211 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14212 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14213 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14214 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14215 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14216 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14217 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
|
|
14218 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
|
|
14219 | PERL!$PERL$ac_delim |
|
|
14220 | PERLLIB!$PERLLIB$ac_delim |
|
|
14221 | PERLFLAGS!$PERLFLAGS$ac_delim |
|
|
14222 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
|
|
14223 | IF_PERL!$IF_PERL$ac_delim |
|
|
14224 | PERL_O!$PERL_O$ac_delim |
|
|
14225 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
|
|
14226 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
|
|
14227 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
14228 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14229 | _ACEOF |
|
|
14230 | |
|
|
14231 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
|
|
14232 | break |
|
|
14233 | elif $ac_last_try; then |
|
|
14234 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14235 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14236 | { (exit 1); exit 1; }; } |
|
|
14237 | else |
|
|
14238 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14239 | fi |
|
|
14240 | done |
|
|
14241 | |
|
|
14242 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14243 | if test -n "$ac_eof"; then |
|
|
14244 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14245 | ac_eof=`expr $ac_eof + 1` |
|
|
14246 | fi |
|
|
14247 | |
|
|
14248 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14249 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
|
|
14250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14251 | _ACEOF |
|
|
14252 | sed ' |
|
|
14253 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14254 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14255 | :n |
|
|
14256 | t n |
|
|
14257 | s/'"$ac_delim"'$/,g/; t |
|
|
14258 | s/$/\\/; p |
|
|
14259 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14260 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14261 | rm -f conf$$subs.sed |
|
|
14262 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14263 | CEOF$ac_eof |
|
|
14264 | _ACEOF |
|
|
14265 | |
|
|
14266 | |
|
|
14267 | ac_delim='%!_!# ' |
|
|
14268 | for ac_last_try in false false false false false :; do |
|
|
14269 | cat >conf$$subs.sed <<_ACEOF |
|
|
14270 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14271 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14272 | include_string_h!$include_string_h$ac_delim |
|
|
14273 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14274 | include_util_h!$include_util_h$ac_delim |
|
|
14275 | include_assert_h!$include_assert_h$ac_delim |
|
|
14276 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14277 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14278 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14279 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14280 | include_time_h!$include_time_h$ac_delim |
|
|
14281 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14282 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14283 | _ACEOF |
|
|
14284 | |
|
|
14285 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then |
|
|
14286 | break |
|
|
14287 | elif $ac_last_try; then |
|
|
14288 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14289 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14290 | { (exit 1); exit 1; }; } |
|
|
14291 | else |
|
|
14292 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14293 | fi |
|
|
14294 | done |
|
|
14295 | |
|
|
14296 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14297 | if test -n "$ac_eof"; then |
|
|
14298 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14299 | ac_eof=`expr $ac_eof + 1` |
|
|
14300 | fi |
|
|
14301 | |
|
|
14302 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14303 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
|
|
14305 | _ACEOF |
|
|
14306 | sed ' |
|
|
14307 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14308 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14309 | :n |
|
|
14310 | t n |
|
|
14311 | s/'"$ac_delim"'$/,g/; t |
|
|
14312 | s/$/\\/; p |
|
|
14313 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14314 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14315 | rm -f conf$$subs.sed |
|
|
14316 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14317 | :end |
|
|
14318 | s/|#_!!_#|//g |
|
|
14319 | CEOF$ac_eof |
|
|
14320 | _ACEOF |
|
|
14321 | |
|
|
14322 | |
|
|
14323 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
|
14324 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
|
14325 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
14326 | # (actually we leave an empty line to preserve line numbers). |
|
|
14327 | if test "x$srcdir" = x.; then |
|
|
14328 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
|
14329 | s/:*\$(srcdir):*/:/ |
|
|
14330 | s/:*\${srcdir}:*/:/ |
|
|
14331 | s/:*@srcdir@:*/:/ |
|
|
14332 | s/^\([^=]*=[ ]*\):*/\1/ |
|
|
14333 | s/:*$// |
|
|
14334 | s/^[^=]*=[ ]*$// |
|
|
14335 | }' |
|
|
14336 | fi |
|
|
14337 | |
|
|
14338 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14339 | fi # test -n "$CONFIG_FILES" |
|
|
14340 | |
|
|
14341 | |
|
|
14342 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
|
|
14343 | do |
|
|
14344 | case $ac_tag in |
|
|
14345 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
14346 | esac |
|
|
14347 | case $ac_mode$ac_tag in |
|
|
14348 | :[FHL]*:*);; |
|
|
14349 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
|
14350 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
|
14351 | { (exit 1); exit 1; }; };; |
|
|
14352 | :[FH]-) ac_tag=-:-;; |
|
|
14353 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
14354 | esac |
|
|
14355 | ac_save_IFS=$IFS |
|
|
14356 | IFS=: |
|
|
14357 | set x $ac_tag |
|
|
14358 | IFS=$ac_save_IFS |
|
|
14359 | shift |
|
|
14360 | ac_file=$1 |
|
|
14361 | shift |
|
|
14362 | |
|
|
14363 | case $ac_mode in |
|
|
14364 | :L) ac_source=$1;; |
|
|
14365 | :[FH]) |
|
|
14366 | ac_file_inputs= |
|
|
14367 | for ac_f |
|
|
14368 | do |
|
|
14369 | case $ac_f in |
|
|
14370 | -) ac_f="$tmp/stdin";; |
|
|
14371 | *) # Look for the file first in the build tree, then in the source tree |
|
|
14372 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
14373 | # because $ac_f cannot contain `:'. |
|
|
14374 | test -f "$ac_f" || |
|
|
14375 | case $ac_f in |
|
|
14376 | [\\/$]*) false;; |
|
|
14377 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
14378 | esac || |
|
|
14379 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
|
14380 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
|
14381 | { (exit 1); exit 1; }; };; |
|
|
14382 | esac |
|
|
14383 | ac_file_inputs="$ac_file_inputs $ac_f" |
|
|
14384 | done |
|
|
14385 | |
|
|
14386 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
14387 | # use $as_me), people would be surprised to read: |
|
|
14388 | # /* config.h. Generated by config.status. */ |
|
|
14389 | configure_input="Generated from "`IFS=: |
|
|
14390 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
|
14391 | if test x"$ac_file" != x-; then |
|
|
14392 | configure_input="$ac_file. $configure_input" |
|
|
14393 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
14394 | echo "$as_me: creating $ac_file" >&6;} |
|
|
14395 | fi |
|
|
14396 | |
|
|
14397 | case $ac_tag in |
|
|
14398 | *:-:* | *:-) cat >"$tmp/stdin";; |
|
|
14399 | esac |
|
|
14400 | ;; |
|
|
14401 | esac |
|
|
14402 | |
|
|
14403 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
14404 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
14405 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
14406 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
14407 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
14408 | echo X"$ac_file" | |
|
|
14409 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
14410 | s//\1/ |
|
|
14411 | q |
|
|
14412 | } |
|
|
14413 | /^X\(\/\/\)[^/].*/{ |
|
|
14414 | s//\1/ |
|
|
14415 | q |
|
|
14416 | } |
|
|
14417 | /^X\(\/\/\)$/{ |
|
|
14418 | s//\1/ |
|
|
14419 | q |
|
|
14420 | } |
|
|
14421 | /^X\(\/\).*/{ |
|
|
14422 | s//\1/ |
|
|
14423 | q |
|
|
14424 | } |
|
|
14425 | s/.*/./; q'` |
|
|
14426 | { as_dir="$ac_dir" |
|
|
14427 | case $as_dir in #( |
8342 | case $as_dir in #( |
14428 | -*) as_dir=./$as_dir;; |
8343 | -*) as_dir=./$as_dir;; |
14429 | esac |
8344 | esac |
14430 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
8345 | test -d "$as_dir" || eval $as_mkdir_p || { |
14431 | as_dirs= |
8346 | as_dirs= |
14432 | while :; do |
8347 | while :; do |
14433 | case $as_dir in #( |
8348 | case $as_dir in #( |
14434 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
8349 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
14435 | *) as_qdir=$as_dir;; |
8350 | *) as_qdir=$as_dir;; |
14436 | esac |
8351 | esac |
14437 | as_dirs="'$as_qdir' $as_dirs" |
8352 | as_dirs="'$as_qdir' $as_dirs" |
14438 | as_dir=`$as_dirname -- "$as_dir" || |
8353 | as_dir=`$as_dirname -- "$as_dir" || |
14439 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8354 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14440 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8355 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
14441 | X"$as_dir" : 'X\(//\)$' \| \ |
8356 | X"$as_dir" : 'X\(//\)$' \| \ |
14442 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
8357 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
14443 | echo X"$as_dir" | |
8358 | printf "%s\n" X"$as_dir" | |
14444 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14445 | s//\1/ |
8360 | s//\1/ |
14446 | q |
8361 | q |
14447 | } |
8362 | } |
14448 | /^X\(\/\/\)[^/].*/{ |
8363 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
14459 | } |
8374 | } |
14460 | s/.*/./; q'` |
8375 | s/.*/./; q'` |
14461 | test -d "$as_dir" && break |
8376 | test -d "$as_dir" && break |
14462 | done |
8377 | done |
14463 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8378 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14464 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
8379 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
14465 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
8380 | |
14466 | { (exit 1); exit 1; }; }; } |
8381 | |
|
|
8382 | } # as_fn_mkdir_p |
|
|
8383 | if mkdir -p . 2>/dev/null; then |
|
|
8384 | as_mkdir_p='mkdir -p "$as_dir"' |
|
|
8385 | else |
|
|
8386 | test -d ./-p && rmdir ./-p |
|
|
8387 | as_mkdir_p=false |
|
|
8388 | fi |
|
|
8389 | |
|
|
8390 | |
|
|
8391 | # as_fn_executable_p FILE |
|
|
8392 | # ----------------------- |
|
|
8393 | # Test if FILE is an executable regular file. |
|
|
8394 | as_fn_executable_p () |
|
|
8395 | { |
|
|
8396 | test -f "$1" && test -x "$1" |
|
|
8397 | } # as_fn_executable_p |
|
|
8398 | as_test_x='test -x' |
|
|
8399 | as_executable_p=as_fn_executable_p |
|
|
8400 | |
|
|
8401 | # Sed expression to map a string onto a valid CPP name. |
|
|
8402 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
8403 | |
|
|
8404 | # Sed expression to map a string onto a valid variable name. |
|
|
8405 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
8406 | |
|
|
8407 | |
|
|
8408 | exec 6>&1 |
|
|
8409 | ## ----------------------------------- ## |
|
|
8410 | ## Main body of $CONFIG_STATUS script. ## |
|
|
8411 | ## ----------------------------------- ## |
|
|
8412 | _ASEOF |
|
|
8413 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
|
8414 | |
|
|
8415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8416 | # Save the log message, to keep $0 and so on meaningful, and to |
|
|
8417 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
8418 | # values after options handling. |
|
|
8419 | ac_log=" |
|
|
8420 | This file was extended by $as_me, which was |
|
|
8421 | generated by GNU Autoconf 2.71. Invocation command line was |
|
|
8422 | |
|
|
8423 | CONFIG_FILES = $CONFIG_FILES |
|
|
8424 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
8425 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
8426 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
8427 | $ $0 $@ |
|
|
8428 | |
|
|
8429 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
8430 | " |
|
|
8431 | |
|
|
8432 | _ACEOF |
|
|
8433 | |
|
|
8434 | case $ac_config_files in *" |
|
|
8435 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
|
8436 | esac |
|
|
8437 | |
|
|
8438 | case $ac_config_headers in *" |
|
|
8439 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
|
8440 | esac |
|
|
8441 | |
|
|
8442 | |
|
|
8443 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8444 | # Files that config.status was made for. |
|
|
8445 | config_files="$ac_config_files" |
|
|
8446 | config_headers="$ac_config_headers" |
|
|
8447 | |
|
|
8448 | _ACEOF |
|
|
8449 | |
|
|
8450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8451 | ac_cs_usage="\ |
|
|
8452 | \`$as_me' instantiates files and other configuration actions |
|
|
8453 | from templates according to the current configuration. Unless the files |
|
|
8454 | and actions are specified as TAGs, all are instantiated by default. |
|
|
8455 | |
|
|
8456 | Usage: $0 [OPTION]... [TAG]... |
|
|
8457 | |
|
|
8458 | -h, --help print this help, then exit |
|
|
8459 | -V, --version print version number and configuration settings, then exit |
|
|
8460 | --config print configuration, then exit |
|
|
8461 | -q, --quiet, --silent |
|
|
8462 | do not print progress messages |
|
|
8463 | -d, --debug don't remove temporary files |
|
|
8464 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
8465 | --file=FILE[:TEMPLATE] |
|
|
8466 | instantiate the configuration file FILE |
|
|
8467 | --header=FILE[:TEMPLATE] |
|
|
8468 | instantiate the configuration header FILE |
|
|
8469 | |
|
|
8470 | Configuration files: |
|
|
8471 | $config_files |
|
|
8472 | |
|
|
8473 | Configuration headers: |
|
|
8474 | $config_headers |
|
|
8475 | |
|
|
8476 | Report bugs to the package provider." |
|
|
8477 | |
|
|
8478 | _ACEOF |
|
|
8479 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
8480 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
|
|
8481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8482 | ac_cs_config='$ac_cs_config_escaped' |
|
|
8483 | ac_cs_version="\\ |
|
|
8484 | config.status |
|
|
8485 | configured by $0, generated by GNU Autoconf 2.71, |
|
|
8486 | with options \\"\$ac_cs_config\\" |
|
|
8487 | |
|
|
8488 | Copyright (C) 2021 Free Software Foundation, Inc. |
|
|
8489 | This config.status script is free software; the Free Software Foundation |
|
|
8490 | gives unlimited permission to copy, distribute and modify it." |
|
|
8491 | |
|
|
8492 | ac_pwd='$ac_pwd' |
|
|
8493 | srcdir='$srcdir' |
|
|
8494 | INSTALL='$INSTALL' |
|
|
8495 | test -n "\$AWK" || AWK=awk |
|
|
8496 | _ACEOF |
|
|
8497 | |
|
|
8498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8499 | # The default lists apply if the user does not specify any file. |
|
|
8500 | ac_need_defaults=: |
|
|
8501 | while test $# != 0 |
|
|
8502 | do |
|
|
8503 | case $1 in |
|
|
8504 | --*=?*) |
|
|
8505 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
8506 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
8507 | ac_shift=: |
|
|
8508 | ;; |
|
|
8509 | --*=) |
|
|
8510 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
8511 | ac_optarg= |
|
|
8512 | ac_shift=: |
|
|
8513 | ;; |
|
|
8514 | *) |
|
|
8515 | ac_option=$1 |
|
|
8516 | ac_optarg=$2 |
|
|
8517 | ac_shift=shift |
|
|
8518 | ;; |
|
|
8519 | esac |
|
|
8520 | |
|
|
8521 | case $ac_option in |
|
|
8522 | # Handling of the options. |
|
|
8523 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
8524 | ac_cs_recheck=: ;; |
|
|
8525 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
8526 | printf "%s\n" "$ac_cs_version"; exit ;; |
|
|
8527 | --config | --confi | --conf | --con | --co | --c ) |
|
|
8528 | printf "%s\n" "$ac_cs_config"; exit ;; |
|
|
8529 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
8530 | debug=: ;; |
|
|
8531 | --file | --fil | --fi | --f ) |
|
|
8532 | $ac_shift |
|
|
8533 | case $ac_optarg in |
|
|
8534 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
8535 | '') as_fn_error $? "missing file argument" ;; |
|
|
8536 | esac |
|
|
8537 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
|
8538 | ac_need_defaults=false;; |
|
|
8539 | --header | --heade | --head | --hea ) |
|
|
8540 | $ac_shift |
|
|
8541 | case $ac_optarg in |
|
|
8542 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
8543 | esac |
|
|
8544 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|
|
8545 | ac_need_defaults=false;; |
|
|
8546 | --he | --h) |
|
|
8547 | # Conflict between --help and --header |
|
|
8548 | as_fn_error $? "ambiguous option: \`$1' |
|
|
8549 | Try \`$0 --help' for more information.";; |
|
|
8550 | --help | --hel | -h ) |
|
|
8551 | printf "%s\n" "$ac_cs_usage"; exit ;; |
|
|
8552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
8553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
8554 | ac_cs_silent=: ;; |
|
|
8555 | |
|
|
8556 | # This is an error. |
|
|
8557 | -*) as_fn_error $? "unrecognized option: \`$1' |
|
|
8558 | Try \`$0 --help' for more information." ;; |
|
|
8559 | |
|
|
8560 | *) as_fn_append ac_config_targets " $1" |
|
|
8561 | ac_need_defaults=false ;; |
|
|
8562 | |
|
|
8563 | esac |
|
|
8564 | shift |
|
|
8565 | done |
|
|
8566 | |
|
|
8567 | ac_configure_extra_args= |
|
|
8568 | |
|
|
8569 | if $ac_cs_silent; then |
|
|
8570 | exec 6>/dev/null |
|
|
8571 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
8572 | fi |
|
|
8573 | |
|
|
8574 | _ACEOF |
|
|
8575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8576 | if \$ac_cs_recheck; then |
|
|
8577 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
8578 | shift |
|
|
8579 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
|
8580 | CONFIG_SHELL='$SHELL' |
|
|
8581 | export CONFIG_SHELL |
|
|
8582 | exec "\$@" |
|
|
8583 | fi |
|
|
8584 | |
|
|
8585 | _ACEOF |
|
|
8586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8587 | exec 5>>config.log |
|
|
8588 | { |
|
|
8589 | echo |
|
|
8590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
8591 | ## Running $as_me. ## |
|
|
8592 | _ASBOX |
|
|
8593 | printf "%s\n" "$ac_log" |
|
|
8594 | } >&5 |
|
|
8595 | |
|
|
8596 | _ACEOF |
|
|
8597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8598 | _ACEOF |
|
|
8599 | |
|
|
8600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8601 | |
|
|
8602 | # Handling of arguments. |
|
|
8603 | for ac_config_target in $ac_config_targets |
|
|
8604 | do |
|
|
8605 | case $ac_config_target in |
|
|
8606 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
|
|
8607 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
8608 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
|
|
8609 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
|
8610 | |
|
|
8611 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
|
8612 | esac |
|
|
8613 | done |
|
|
8614 | |
|
|
8615 | |
|
|
8616 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
8617 | # then the envvar interface is used. Set only those that are not. |
|
|
8618 | # We use the long form for the default assignment because of an extremely |
|
|
8619 | # bizarre bug on SunOS 4.1.3. |
|
|
8620 | if $ac_need_defaults; then |
|
|
8621 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
|
|
8622 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
|
|
8623 | fi |
|
|
8624 | |
|
|
8625 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
8626 | # simply because there is no reason against having it here, and in addition, |
|
|
8627 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
8628 | # Hook for its removal unless debugging. |
|
|
8629 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
8630 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
8631 | $debug || |
|
|
8632 | { |
|
|
8633 | tmp= ac_tmp= |
|
|
8634 | trap 'exit_status=$? |
|
|
8635 | : "${ac_tmp:=$tmp}" |
|
|
8636 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
|
8637 | ' 0 |
|
|
8638 | trap 'as_fn_exit 1' 1 2 13 15 |
|
|
8639 | } |
|
|
8640 | # Create a (secure) tmp directory for tmp files. |
|
|
8641 | |
|
|
8642 | { |
|
|
8643 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
8644 | test -d "$tmp" |
|
|
8645 | } || |
|
|
8646 | { |
|
|
8647 | tmp=./conf$$-$RANDOM |
|
|
8648 | (umask 077 && mkdir "$tmp") |
|
|
8649 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
|
8650 | ac_tmp=$tmp |
|
|
8651 | |
|
|
8652 | # Set up the scripts for CONFIG_FILES section. |
|
|
8653 | # No need to generate them if there are no CONFIG_FILES. |
|
|
8654 | # This happens for instance with `./config.status config.h'. |
|
|
8655 | if test -n "$CONFIG_FILES"; then |
|
|
8656 | |
|
|
8657 | |
|
|
8658 | ac_cr=`echo X | tr X '\015'` |
|
|
8659 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
|
8660 | # But we know of no other shell where ac_cr would be empty at this |
|
|
8661 | # point, so we can use a bashism as a fallback. |
|
|
8662 | if test "x$ac_cr" = x; then |
|
|
8663 | eval ac_cr=\$\'\\r\' |
|
|
8664 | fi |
|
|
8665 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
|
8666 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
|
8667 | ac_cs_awk_cr='\\r' |
|
|
8668 | else |
|
|
8669 | ac_cs_awk_cr=$ac_cr |
|
|
8670 | fi |
|
|
8671 | |
|
|
8672 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|
|
8673 | _ACEOF |
|
|
8674 | |
|
|
8675 | |
|
|
8676 | { |
|
|
8677 | echo "cat >conf$$subs.awk <<_ACEOF" && |
|
|
8678 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
|
8679 | echo "_ACEOF" |
|
|
8680 | } >conf$$subs.sh || |
|
|
8681 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8682 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
|
8683 | ac_delim='%!_!# ' |
|
|
8684 | for ac_last_try in false false false false false :; do |
|
|
8685 | . ./conf$$subs.sh || |
|
|
8686 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8687 | |
|
|
8688 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
|
8689 | if test $ac_delim_n = $ac_delim_num; then |
|
|
8690 | break |
|
|
8691 | elif $ac_last_try; then |
|
|
8692 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
8693 | else |
|
|
8694 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
8695 | fi |
|
|
8696 | done |
|
|
8697 | rm -f conf$$subs.sh |
|
|
8698 | |
|
|
8699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8700 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
|
8701 | _ACEOF |
|
|
8702 | sed -n ' |
|
|
8703 | h |
|
|
8704 | s/^/S["/; s/!.*/"]=/ |
|
|
8705 | p |
|
|
8706 | g |
|
|
8707 | s/^[^!]*!// |
|
|
8708 | :repl |
|
|
8709 | t repl |
|
|
8710 | s/'"$ac_delim"'$// |
|
|
8711 | t delim |
|
|
8712 | :nl |
|
|
8713 | h |
|
|
8714 | s/\(.\{148\}\)..*/\1/ |
|
|
8715 | t more1 |
|
|
8716 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
|
8717 | p |
|
|
8718 | n |
|
|
8719 | b repl |
|
|
8720 | :more1 |
|
|
8721 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
8722 | p |
|
|
8723 | g |
|
|
8724 | s/.\{148\}// |
|
|
8725 | t nl |
|
|
8726 | :delim |
|
|
8727 | h |
|
|
8728 | s/\(.\{148\}\)..*/\1/ |
|
|
8729 | t more2 |
|
|
8730 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
|
8731 | p |
|
|
8732 | b |
|
|
8733 | :more2 |
|
|
8734 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
8735 | p |
|
|
8736 | g |
|
|
8737 | s/.\{148\}// |
|
|
8738 | t delim |
|
|
8739 | ' <conf$$subs.awk | sed ' |
|
|
8740 | /^[^""]/{ |
|
|
8741 | N |
|
|
8742 | s/\n// |
|
|
8743 | } |
|
|
8744 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
8745 | rm -f conf$$subs.awk |
|
|
8746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8747 | _ACAWK |
|
|
8748 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
|
8749 | for (key in S) S_is_set[key] = 1 |
|
|
8750 | FS = "" |
|
|
8751 | |
|
|
8752 | } |
|
|
8753 | { |
|
|
8754 | line = $ 0 |
|
|
8755 | nfields = split(line, field, "@") |
|
|
8756 | substed = 0 |
|
|
8757 | len = length(field[1]) |
|
|
8758 | for (i = 2; i < nfields; i++) { |
|
|
8759 | key = field[i] |
|
|
8760 | keylen = length(key) |
|
|
8761 | if (S_is_set[key]) { |
|
|
8762 | value = S[key] |
|
|
8763 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
|
8764 | len += length(value) + length(field[++i]) |
|
|
8765 | substed = 1 |
|
|
8766 | } else |
|
|
8767 | len += 1 + keylen |
|
|
8768 | } |
|
|
8769 | |
|
|
8770 | print line |
|
|
8771 | } |
|
|
8772 | |
|
|
8773 | _ACAWK |
|
|
8774 | _ACEOF |
|
|
8775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8776 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
|
8777 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
|
8778 | else |
|
|
8779 | cat |
|
|
8780 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
|
8781 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
|
8782 | _ACEOF |
|
|
8783 | |
|
|
8784 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
|
8785 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
|
8786 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
8787 | # (actually we leave an empty line to preserve line numbers). |
|
|
8788 | if test "x$srcdir" = x.; then |
|
|
8789 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
|
8790 | h |
|
|
8791 | s/// |
|
|
8792 | s/^/:/ |
|
|
8793 | s/[ ]*$/:/ |
|
|
8794 | s/:\$(srcdir):/:/g |
|
|
8795 | s/:\${srcdir}:/:/g |
|
|
8796 | s/:@srcdir@:/:/g |
|
|
8797 | s/^:*// |
|
|
8798 | s/:*$// |
|
|
8799 | x |
|
|
8800 | s/\(=[ ]*\).*/\1/ |
|
|
8801 | G |
|
|
8802 | s/\n// |
|
|
8803 | s/^[^=]*=[ ]*$// |
|
|
8804 | }' |
|
|
8805 | fi |
|
|
8806 | |
|
|
8807 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8808 | fi # test -n "$CONFIG_FILES" |
|
|
8809 | |
|
|
8810 | # Set up the scripts for CONFIG_HEADERS section. |
|
|
8811 | # No need to generate them if there are no CONFIG_HEADERS. |
|
|
8812 | # This happens for instance with `./config.status Makefile'. |
|
|
8813 | if test -n "$CONFIG_HEADERS"; then |
|
|
8814 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
|
|
8815 | BEGIN { |
|
|
8816 | _ACEOF |
|
|
8817 | |
|
|
8818 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
|
|
8819 | # here-document in config.status, that substitutes the proper values into |
|
|
8820 | # config.h.in to produce config.h. |
|
|
8821 | |
|
|
8822 | # Create a delimiter string that does not exist in confdefs.h, to ease |
|
|
8823 | # handling of long lines. |
|
|
8824 | ac_delim='%!_!# ' |
|
|
8825 | for ac_last_try in false false :; do |
|
|
8826 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
|
|
8827 | if test -z "$ac_tt"; then |
|
|
8828 | break |
|
|
8829 | elif $ac_last_try; then |
|
|
8830 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|
|
8831 | else |
|
|
8832 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
8833 | fi |
|
|
8834 | done |
|
|
8835 | |
|
|
8836 | # For the awk script, D is an array of macro values keyed by name, |
|
|
8837 | # likewise P contains macro parameters if any. Preserve backslash |
|
|
8838 | # newline sequences. |
|
|
8839 | |
|
|
8840 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
8841 | sed -n ' |
|
|
8842 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
8843 | t rset |
|
|
8844 | :rset |
|
|
8845 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
|
8846 | t def |
|
|
8847 | d |
|
|
8848 | :def |
|
|
8849 | s/\\$// |
|
|
8850 | t bsnl |
|
|
8851 | s/["\\]/\\&/g |
|
|
8852 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
8853 | D["\1"]=" \3"/p |
|
|
8854 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
|
8855 | d |
|
|
8856 | :bsnl |
|
|
8857 | s/["\\]/\\&/g |
|
|
8858 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
8859 | D["\1"]=" \3\\\\\\n"\\/p |
|
|
8860 | t cont |
|
|
8861 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
|
8862 | t cont |
|
|
8863 | d |
|
|
8864 | :cont |
|
|
8865 | n |
|
|
8866 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
8867 | t clear |
|
|
8868 | :clear |
|
|
8869 | s/\\$// |
|
|
8870 | t bsnlc |
|
|
8871 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
|
8872 | d |
|
|
8873 | :bsnlc |
|
|
8874 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
|
8875 | b cont |
|
|
8876 | ' <confdefs.h | sed ' |
|
|
8877 | s/'"$ac_delim"'/"\\\ |
|
|
8878 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
8879 | |
|
|
8880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
8881 | for (key in D) D_is_set[key] = 1 |
|
|
8882 | FS = "" |
|
|
8883 | } |
|
|
8884 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
|
8885 | line = \$ 0 |
|
|
8886 | split(line, arg, " ") |
|
|
8887 | if (arg[1] == "#") { |
|
|
8888 | defundef = arg[2] |
|
|
8889 | mac1 = arg[3] |
|
|
8890 | } else { |
|
|
8891 | defundef = substr(arg[1], 2) |
|
|
8892 | mac1 = arg[2] |
|
|
8893 | } |
|
|
8894 | split(mac1, mac2, "(") #) |
|
|
8895 | macro = mac2[1] |
|
|
8896 | prefix = substr(line, 1, index(line, defundef) - 1) |
|
|
8897 | if (D_is_set[macro]) { |
|
|
8898 | # Preserve the white space surrounding the "#". |
|
|
8899 | print prefix "define", macro P[macro] D[macro] |
|
|
8900 | next |
|
|
8901 | } else { |
|
|
8902 | # Replace #undef with comments. This is necessary, for example, |
|
|
8903 | # in the case of _POSIX_SOURCE, which is predefined and required |
|
|
8904 | # on some systems where configure will not decide to define it. |
|
|
8905 | if (defundef == "undef") { |
|
|
8906 | print "/*", prefix defundef, macro, "*/" |
|
|
8907 | next |
|
|
8908 | } |
|
|
8909 | } |
|
|
8910 | } |
|
|
8911 | { print } |
|
|
8912 | _ACAWK |
|
|
8913 | _ACEOF |
|
|
8914 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
8915 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
|
|
8916 | fi # test -n "$CONFIG_HEADERS" |
|
|
8917 | |
|
|
8918 | |
|
|
8919 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
|
|
8920 | shift |
|
|
8921 | for ac_tag |
|
|
8922 | do |
|
|
8923 | case $ac_tag in |
|
|
8924 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
8925 | esac |
|
|
8926 | case $ac_mode$ac_tag in |
|
|
8927 | :[FHL]*:*);; |
|
|
8928 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
|
8929 | :[FH]-) ac_tag=-:-;; |
|
|
8930 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
8931 | esac |
|
|
8932 | ac_save_IFS=$IFS |
|
|
8933 | IFS=: |
|
|
8934 | set x $ac_tag |
|
|
8935 | IFS=$ac_save_IFS |
|
|
8936 | shift |
|
|
8937 | ac_file=$1 |
|
|
8938 | shift |
|
|
8939 | |
|
|
8940 | case $ac_mode in |
|
|
8941 | :L) ac_source=$1;; |
|
|
8942 | :[FH]) |
|
|
8943 | ac_file_inputs= |
|
|
8944 | for ac_f |
|
|
8945 | do |
|
|
8946 | case $ac_f in |
|
|
8947 | -) ac_f="$ac_tmp/stdin";; |
|
|
8948 | *) # Look for the file first in the build tree, then in the source tree |
|
|
8949 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
8950 | # because $ac_f cannot contain `:'. |
|
|
8951 | test -f "$ac_f" || |
|
|
8952 | case $ac_f in |
|
|
8953 | [\\/$]*) false;; |
|
|
8954 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
8955 | esac || |
|
|
8956 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
|
8957 | esac |
|
|
8958 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
|
8959 | as_fn_append ac_file_inputs " '$ac_f'" |
|
|
8960 | done |
|
|
8961 | |
|
|
8962 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
8963 | # use $as_me), people would be surprised to read: |
|
|
8964 | # /* config.h. Generated by config.status. */ |
|
|
8965 | configure_input='Generated from '` |
|
|
8966 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
|
8967 | `' by configure.' |
|
|
8968 | if test x"$ac_file" != x-; then |
|
|
8969 | configure_input="$ac_file. $configure_input" |
|
|
8970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
|
8971 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
|
|
8972 | fi |
|
|
8973 | # Neutralize special characters interpreted by sed in replacement strings. |
|
|
8974 | case $configure_input in #( |
|
|
8975 | *\&* | *\|* | *\\* ) |
|
|
8976 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
|
|
8977 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
|
8978 | *) ac_sed_conf_input=$configure_input;; |
|
|
8979 | esac |
|
|
8980 | |
|
|
8981 | case $ac_tag in |
|
|
8982 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
|
8983 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
|
8984 | esac |
|
|
8985 | ;; |
|
|
8986 | esac |
|
|
8987 | |
|
|
8988 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
8989 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
8990 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
8991 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
8992 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
8993 | printf "%s\n" X"$ac_file" | |
|
|
8994 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
8995 | s//\1/ |
|
|
8996 | q |
|
|
8997 | } |
|
|
8998 | /^X\(\/\/\)[^/].*/{ |
|
|
8999 | s//\1/ |
|
|
9000 | q |
|
|
9001 | } |
|
|
9002 | /^X\(\/\/\)$/{ |
|
|
9003 | s//\1/ |
|
|
9004 | q |
|
|
9005 | } |
|
|
9006 | /^X\(\/\).*/{ |
|
|
9007 | s//\1/ |
|
|
9008 | q |
|
|
9009 | } |
|
|
9010 | s/.*/./; q'` |
|
|
9011 | as_dir="$ac_dir"; as_fn_mkdir_p |
14467 | ac_builddir=. |
9012 | ac_builddir=. |
14468 | |
9013 | |
14469 | case "$ac_dir" in |
9014 | case "$ac_dir" in |
14470 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9015 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14471 | *) |
9016 | *) |
14472 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
9017 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
14473 | # A ".." for each directory in $ac_dir_suffix. |
9018 | # A ".." for each directory in $ac_dir_suffix. |
14474 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
9019 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14475 | case $ac_top_builddir_sub in |
9020 | case $ac_top_builddir_sub in |
14476 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
9021 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14477 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
9022 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14478 | esac ;; |
9023 | esac ;; |
14479 | esac |
9024 | esac |
… | |
… | |
14509 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
9054 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14510 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
9055 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14511 | esac |
9056 | esac |
14512 | _ACEOF |
9057 | _ACEOF |
14513 | |
9058 | |
14514 | cat >>$CONFIG_STATUS <<\_ACEOF |
9059 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14515 | # If the template does not know about datarootdir, expand it. |
9060 | # If the template does not know about datarootdir, expand it. |
14516 | # FIXME: This hack should be removed a few years after 2.60. |
9061 | # FIXME: This hack should be removed a few years after 2.60. |
14517 | ac_datarootdir_hack=; ac_datarootdir_seen= |
9062 | ac_datarootdir_hack=; ac_datarootdir_seen= |
14518 | |
9063 | ac_sed_dataroot=' |
14519 | case `sed -n '/datarootdir/ { |
9064 | /datarootdir/ { |
14520 | p |
9065 | p |
14521 | q |
9066 | q |
14522 | } |
9067 | } |
14523 | /@datadir@/p |
9068 | /@datadir@/p |
14524 | /@docdir@/p |
9069 | /@docdir@/p |
14525 | /@infodir@/p |
9070 | /@infodir@/p |
14526 | /@localedir@/p |
9071 | /@localedir@/p |
14527 | /@mandir@/p |
9072 | /@mandir@/p' |
14528 | ' $ac_file_inputs` in |
9073 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14529 | *datarootdir*) ac_datarootdir_seen=yes;; |
9074 | *datarootdir*) ac_datarootdir_seen=yes;; |
14530 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
9075 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14531 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14532 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
9077 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14533 | _ACEOF |
9078 | _ACEOF |
14534 | cat >>$CONFIG_STATUS <<_ACEOF |
9079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14535 | ac_datarootdir_hack=' |
9080 | ac_datarootdir_hack=' |
14536 | s&@datadir@&$datadir&g |
9081 | s&@datadir@&$datadir&g |
14537 | s&@docdir@&$docdir&g |
9082 | s&@docdir@&$docdir&g |
14538 | s&@infodir@&$infodir&g |
9083 | s&@infodir@&$infodir&g |
14539 | s&@localedir@&$localedir&g |
9084 | s&@localedir@&$localedir&g |
14540 | s&@mandir@&$mandir&g |
9085 | s&@mandir@&$mandir&g |
14541 | s&\\\${datarootdir}&$datarootdir&g' ;; |
9086 | s&\\\${datarootdir}&$datarootdir&g' ;; |
14542 | esac |
9087 | esac |
14543 | _ACEOF |
9088 | _ACEOF |
14544 | |
9089 | |
14545 | # Neutralize VPATH when `$srcdir' = `.'. |
9090 | # Neutralize VPATH when `$srcdir' = `.'. |
14546 | # Shell code in configure.ac might set extrasub. |
9091 | # Shell code in configure.ac might set extrasub. |
14547 | # FIXME: do we really want to maintain this feature? |
9092 | # FIXME: do we really want to maintain this feature? |
14548 | cat >>$CONFIG_STATUS <<_ACEOF |
9093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14549 | sed "$ac_vpsub |
9094 | ac_sed_extra="$ac_vpsub |
14550 | $extrasub |
9095 | $extrasub |
14551 | _ACEOF |
9096 | _ACEOF |
14552 | cat >>$CONFIG_STATUS <<\_ACEOF |
9097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14553 | :t |
9098 | :t |
14554 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
9099 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14555 | s&@configure_input@&$configure_input&;t t |
9100 | s|@configure_input@|$ac_sed_conf_input|;t t |
14556 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
9101 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
|
9102 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14557 | s&@srcdir@&$ac_srcdir&;t t |
9103 | s&@srcdir@&$ac_srcdir&;t t |
14558 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
9104 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14559 | s&@top_srcdir@&$ac_top_srcdir&;t t |
9105 | s&@top_srcdir@&$ac_top_srcdir&;t t |
14560 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
9106 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14561 | s&@builddir@&$ac_builddir&;t t |
9107 | s&@builddir@&$ac_builddir&;t t |
14562 | s&@abs_builddir@&$ac_abs_builddir&;t t |
9108 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14563 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
9109 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14564 | s&@INSTALL@&$ac_INSTALL&;t t |
9110 | s&@INSTALL@&$ac_INSTALL&;t t |
14565 | $ac_datarootdir_hack |
9111 | $ac_datarootdir_hack |
14566 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
9112 | " |
|
|
9113 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
|
9114 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14567 | |
9115 | |
14568 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
9116 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14569 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
9117 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14570 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
9118 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
|
9119 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
14571 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14572 | which seems to be undefined. Please make sure it is defined." >&5 |
9121 | which seems to be undefined. Please make sure it is defined" >&5 |
14573 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
9122 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14574 | which seems to be undefined. Please make sure it is defined." >&2;} |
9123 | which seems to be undefined. Please make sure it is defined" >&2;} |
14575 | |
9124 | |
14576 | rm -f "$tmp/stdin" |
9125 | rm -f "$ac_tmp/stdin" |
14577 | case $ac_file in |
9126 | case $ac_file in |
14578 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
9127 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14579 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
9128 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
14580 | esac |
9129 | esac \ |
|
|
9130 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14581 | ;; |
9131 | ;; |
14582 | :H) |
9132 | :H) |
14583 | # |
9133 | # |
14584 | # CONFIG_HEADER |
9134 | # CONFIG_HEADER |
14585 | # |
9135 | # |
14586 | _ACEOF |
|
|
14587 | |
|
|
14588 | # Transform confdefs.h into a sed script `conftest.defines', that |
|
|
14589 | # substitutes the proper values into config.h.in to produce config.h. |
|
|
14590 | rm -f conftest.defines conftest.tail |
|
|
14591 | # First, append a space to every undef/define line, to ease matching. |
|
|
14592 | echo 's/$/ /' >conftest.defines |
|
|
14593 | # Then, protect against being on the right side of a sed subst, or in |
|
|
14594 | # an unquoted here document, in config.status. If some macros were |
|
|
14595 | # called several times there might be several #defines for the same |
|
|
14596 | # symbol, which is useless. But do not sort them, since the last |
|
|
14597 | # AC_DEFINE must be honored. |
|
|
14598 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
14599 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
|
14600 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
|
14601 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
|
14602 | # just an empty string. |
|
|
14603 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
|
14604 | ac_dB='\\)[ (].*,\\1define\\2' |
|
|
14605 | ac_dC=' ' |
|
|
14606 | ac_dD=' ,' |
|
|
14607 | |
|
|
14608 | uniq confdefs.h | |
|
|
14609 | sed -n ' |
|
|
14610 | t rset |
|
|
14611 | :rset |
|
|
14612 | s/^[ ]*#[ ]*define[ ][ ]*// |
|
|
14613 | t ok |
|
|
14614 | d |
|
|
14615 | :ok |
|
|
14616 | s/[\\&,]/\\&/g |
|
|
14617 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
|
14618 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
|
14619 | ' >>conftest.defines |
|
|
14620 | |
|
|
14621 | # Remove the space that was appended to ease matching. |
|
|
14622 | # Then replace #undef with comments. This is necessary, for |
|
|
14623 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
|
14624 | # on some systems where configure will not decide to define it. |
|
|
14625 | # (The regexp can be short, since the line contains either #define or #undef.) |
|
|
14626 | echo 's/ $// |
|
|
14627 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
|
14628 | |
|
|
14629 | # Break up conftest.defines: |
|
|
14630 | ac_max_sed_lines=50 |
|
|
14631 | |
|
|
14632 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
|
14633 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
|
14634 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
|
14635 | # et cetera. |
|
|
14636 | ac_in='$ac_file_inputs' |
|
|
14637 | ac_out='"$tmp/out1"' |
|
|
14638 | ac_nxt='"$tmp/out2"' |
|
|
14639 | |
|
|
14640 | while : |
|
|
14641 | do |
|
|
14642 | # Write a here document: |
|
|
14643 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14644 | # First, check the format of the line: |
|
|
14645 | cat >"\$tmp/defines.sed" <<\\CEOF |
|
|
14646 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
|
14647 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
|
14648 | b |
|
|
14649 | :def |
|
|
14650 | _ACEOF |
|
|
14651 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
|
|
14652 | echo 'CEOF |
|
|
14653 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
|
|
14654 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
|
14655 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
|
14656 | grep . conftest.tail >/dev/null || break |
|
|
14657 | rm -f conftest.defines |
|
|
14658 | mv conftest.tail conftest.defines |
|
|
14659 | done |
|
|
14660 | rm -f conftest.defines conftest.tail |
|
|
14661 | |
|
|
14662 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
|
14663 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
14664 | if test x"$ac_file" != x-; then |
9136 | if test x"$ac_file" != x-; then |
14665 | echo "/* $configure_input */" >"$tmp/config.h" |
9137 | { |
14666 | cat "$ac_result" >>"$tmp/config.h" |
9138 | printf "%s\n" "/* $configure_input */" >&1 \ |
|
|
9139 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
|
|
9140 | } >"$ac_tmp/config.h" \ |
|
|
9141 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14667 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
9142 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
14668 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
9143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14669 | echo "$as_me: $ac_file is unchanged" >&6;} |
9144 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
14670 | else |
9145 | else |
14671 | rm -f $ac_file |
9146 | rm -f "$ac_file" |
14672 | mv "$tmp/config.h" $ac_file |
9147 | mv "$ac_tmp/config.h" "$ac_file" \ |
|
|
9148 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14673 | fi |
9149 | fi |
14674 | else |
9150 | else |
14675 | echo "/* $configure_input */" |
9151 | printf "%s\n" "/* $configure_input */" >&1 \ |
14676 | cat "$ac_result" |
9152 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
|
|
9153 | || as_fn_error $? "could not create -" "$LINENO" 5 |
14677 | fi |
9154 | fi |
14678 | rm -f "$tmp/out12" |
|
|
14679 | ;; |
9155 | ;; |
14680 | |
9156 | |
14681 | |
9157 | |
14682 | esac |
9158 | esac |
14683 | |
9159 | |
14684 | done # for ac_tag |
9160 | done # for ac_tag |
14685 | |
9161 | |
14686 | |
9162 | |
14687 | { (exit 0); exit 0; } |
9163 | as_fn_exit 0 |
14688 | _ACEOF |
9164 | _ACEOF |
14689 | chmod +x $CONFIG_STATUS |
|
|
14690 | ac_clean_files=$ac_clean_files_save |
9165 | ac_clean_files=$ac_clean_files_save |
|
|
9166 | |
|
|
9167 | test $ac_write_fail = 0 || |
|
|
9168 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
14691 | |
9169 | |
14692 | |
9170 | |
14693 | # configure is writing to config.log, and then calls config.status. |
9171 | # configure is writing to config.log, and then calls config.status. |
14694 | # config.status does its own redirection, appending to config.log. |
9172 | # config.status does its own redirection, appending to config.log. |
14695 | # Unfortunately, on DOS this fails, as config.log is still kept open |
9173 | # Unfortunately, on DOS this fails, as config.log is still kept open |
… | |
… | |
14706 | exec 5>/dev/null |
9184 | exec 5>/dev/null |
14707 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9185 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
14708 | exec 5>>config.log |
9186 | exec 5>>config.log |
14709 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
9187 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
14710 | # would make configure fail if this is the last instruction. |
9188 | # would make configure fail if this is the last instruction. |
14711 | $ac_cs_success || { (exit 1); exit 1; } |
9189 | $ac_cs_success || as_fn_exit 1 |
|
|
9190 | fi |
|
|
9191 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
|
9192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
|
9193 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14712 | fi |
9194 | fi |
14713 | |
9195 | |
14714 | |
9196 | |
14715 | echo "Configuration: |
9197 | echo "Configuration: |
14716 | |
9198 | |
… | |
… | |
14719 | Install path: ${prefix}/bin |
9201 | Install path: ${prefix}/bin |
14720 | Compiler: $CXX |
9202 | Compiler: $CXX |
14721 | Compiler flags: $CXXFLAGS |
9203 | Compiler flags: $CXXFLAGS |
14722 | Linker: $LINKER" |
9204 | Linker: $LINKER" |
14723 | |
9205 | |
14724 | if test x$support_xpm = xyes; then |
|
|
14725 | echo " Xpm library: $XPM_LIBS" |
|
|
14726 | fi |
|
|
14727 | |
|
|
14728 | if test x$support_afterimage = xyes; then |
|
|
14729 | echo " AfterImage support: yes" |
|
|
14730 | fi |
|
|
14731 | |
|
|
14732 | |
|
|
14733 | if test x$term != x; then |
9206 | if test x$term != x; then |
14734 | echo " set TERM to: $term" |
9207 | echo " set TERM to: $term" |
14735 | fi |
9208 | fi |
14736 | if test x$terminfo != x; then |
9209 | if test x$terminfo != x; then |
14737 | echo " set TERMINFO to: $terminfo" |
9210 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14741 | if test x$RESFALLBACK != x; then |
9214 | if test x$RESFALLBACK != x; then |
14742 | echo " resource class fallback: $RESFALLBACK" |
9215 | echo " resource class fallback: $RESFALLBACK" |
14743 | fi |
9216 | fi |
14744 | echo |
9217 | echo |
14745 | echo " embedded perl: $support_perl" |
9218 | echo " embedded perl: $support_perl" |
14746 | echo " libafterimage: $support_afterimage" |
9219 | echo " image library: $image_lib" |
14747 | echo |
9220 | echo |
14748 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14749 | echo ".----------------------------------------------------------------." |
|
|
14750 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14751 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14752 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14753 | echo ". to use them you should rerun configure with the ." |
|
|
14754 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14755 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14756 | echo ".----------------------------------------------------------------." |
|
|
14757 | fi |
|
|
14758 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
9221 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14759 | echo ".----------------------------------------------------------------." |
9222 | echo ".----------------------------------------------------------------." |
14760 | echo ". WARNING: --enable-xim was specified however the locale support ." |
9223 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14761 | echo ". functions could not be found. ." |
9224 | echo ". functions could not be found. ." |
14762 | echo ". XIM is now being DISABLED! ." |
9225 | echo ". XIM is now being DISABLED! ." |
… | |
… | |
14764 | fi |
9227 | fi |
14765 | |
9228 | |
14766 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
9229 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
14767 | echo |
9230 | echo |
14768 | |
9231 | |
|
|
9232 | |