]>
Commit | Line | Data |
---|---|---|
c7aa54aa DWT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64 for Cycript 0.9. | |
4 | # | |
5 | # Report bugs to <saurik@saurik.com>. | |
6 | # | |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
9 | # Foundation, Inc. | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | case $0 in #(( | |
93 | *[\\/]* ) as_myself=$0 ;; | |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
100 | done | |
101 | IFS=$as_save_IFS | |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
112 | exit 1 | |
113 | fi | |
114 | ||
115 | # Unset variables that we do not need and which cause bugs (e.g. in | |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
122 | done | |
123 | PS1='$ ' | |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
128 | LC_ALL=C | |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
132 | ||
133 | # CDPATH. | |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
174 | if (eval "$as_required") 2>/dev/null; then : | |
175 | as_have_required=yes | |
176 | else | |
177 | as_have_required=no | |
178 | fi | |
179 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
180 | ||
181 | else | |
182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
183 | as_found=false | |
184 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
185 | do | |
186 | IFS=$as_save_IFS | |
187 | test -z "$as_dir" && as_dir=. | |
188 | as_found=: | |
189 | case $as_dir in #( | |
190 | /*) | |
191 | for as_base in sh bash ksh sh5; do | |
192 | # Try only shells that exist, to save several forks. | |
193 | as_shell=$as_dir/$as_base | |
194 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
195 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
196 | CONFIG_SHELL=$as_shell as_have_required=yes | |
197 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | break 2 | |
199 | fi | |
200 | fi | |
201 | done;; | |
202 | esac | |
203 | as_found=false | |
204 | done | |
205 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
206 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
207 | CONFIG_SHELL=$SHELL as_have_required=yes | |
208 | fi; } | |
209 | IFS=$as_save_IFS | |
210 | ||
211 | ||
212 | if test "x$CONFIG_SHELL" != x; then : | |
213 | # We cannot yet assume a decent shell, so we have to provide a | |
214 | # neutralization value for shells without unset; and this also | |
215 | # works around shells that cannot unset nonexistent variables. | |
216 | BASH_ENV=/dev/null | |
217 | ENV=/dev/null | |
218 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
219 | export CONFIG_SHELL | |
220 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
221 | fi | |
222 | ||
223 | if test x$as_have_required = xno; then : | |
224 | $as_echo "$0: This script requires a shell more modern than all" | |
225 | $as_echo "$0: the shells that I found on your system." | |
226 | if test x${ZSH_VERSION+set} = xset ; then | |
227 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
228 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
229 | else | |
230 | $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com | |
231 | $0: about your system, including any error possibly output | |
232 | $0: before this message. Then install a modern shell, or | |
233 | $0: manually run the script under such a shell if you do | |
234 | $0: have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error ERROR [LINENO LOG_FD] | |
360 | # --------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with status $?, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
367 | if test "$3"; then | |
368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
370 | fi | |
371 | $as_echo "$as_me: error: $1" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
375 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
377 | as_expr=expr | |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
383 | as_basename=basename | |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
393 | ||
394 | as_me=`$as_basename -- "$0" || | |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
396 | X"$0" : 'X\(//\)$' \| \ | |
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
398 | $as_echo X/"$0" | | |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
412 | ||
413 | # Avoid depending upon Character Ranges. | |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
419 | ||
420 | ||
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
443 | ||
444 | # Don't try to exec as it changes $[0], causing all sort of problems | |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
450 | } | |
451 | ||
452 | ECHO_C= ECHO_N= ECHO_T= | |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
464 | ||
465 | rm -f conf$$ conf$$.exe conf$$.file | |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
471 | fi | |
472 | if (echo >conf$$.file) 2>/dev/null; then | |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
486 | else | |
487 | as_ln_s='cp -p' | |
488 | fi | |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
490 | rmdir conf$$.dir 2>/dev/null | |
491 | ||
492 | if mkdir -p . 2>/dev/null; then | |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
497 | fi | |
498 | ||
499 | if test -x / >/dev/null 2>&1; then | |
500 | as_test_x='test -x' | |
501 | else | |
502 | if ls -dL / >/dev/null 2>&1; then | |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
519 | fi | |
520 | as_executable_p=$as_test_x | |
521 | ||
522 | # Sed expression to map a string onto a valid CPP name. | |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
524 | ||
525 | # Sed expression to map a string onto a valid variable name. | |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
527 | ||
528 | ||
529 | exec 7<&0 </dev/null 6>&1 | |
530 | ||
531 | # Name of the host. | |
532 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
533 | # so uname gets run too. | |
534 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
535 | ||
536 | # | |
537 | # Initializations. | |
538 | # | |
539 | ac_default_prefix=/usr/local | |
540 | ac_clean_files= | |
541 | ac_config_libobj_dir=. | |
542 | LIBOBJS= | |
543 | cross_compiling=no | |
544 | subdirs= | |
545 | MFLAGS= | |
546 | MAKEFLAGS= | |
547 | ||
548 | # Identity of this package. | |
549 | PACKAGE_NAME='Cycript' | |
550 | PACKAGE_TARNAME='cycript' | |
551 | PACKAGE_VERSION='0.9' | |
552 | PACKAGE_STRING='Cycript 0.9' | |
553 | PACKAGE_BUGREPORT='saurik@saurik.com' | |
554 | PACKAGE_URL='http://www.cycript.org/' | |
555 | ||
dbadc56a DWT |
556 | ac_subst_vars='OBJEXT |
557 | EXEEXT | |
558 | ac_ct_CXX | |
559 | CPPFLAGS | |
560 | LDFLAGS | |
561 | CXXFLAGS | |
562 | CXX | |
563 | target_alias | |
c7aa54aa DWT |
564 | host_alias |
565 | build_alias | |
566 | LIBS | |
567 | ECHO_T | |
568 | ECHO_N | |
569 | ECHO_C | |
570 | DEFS | |
571 | mandir | |
572 | localedir | |
573 | libdir | |
574 | psdir | |
575 | pdfdir | |
576 | dvidir | |
577 | htmldir | |
578 | infodir | |
579 | docdir | |
580 | oldincludedir | |
581 | includedir | |
582 | localstatedir | |
583 | sharedstatedir | |
584 | sysconfdir | |
585 | datadir | |
586 | datarootdir | |
587 | libexecdir | |
588 | sbindir | |
589 | bindir | |
590 | program_transform_name | |
591 | prefix | |
592 | exec_prefix | |
593 | PACKAGE_URL | |
594 | PACKAGE_BUGREPORT | |
595 | PACKAGE_STRING | |
596 | PACKAGE_VERSION | |
597 | PACKAGE_TARNAME | |
598 | PACKAGE_NAME | |
599 | PATH_SEPARATOR | |
600 | SHELL' | |
601 | ac_subst_files='' | |
602 | ac_user_opts=' | |
603 | enable_option_checking | |
604 | ' | |
605 | ac_precious_vars='build_alias | |
606 | host_alias | |
dbadc56a DWT |
607 | target_alias |
608 | CXX | |
609 | CXXFLAGS | |
610 | LDFLAGS | |
611 | LIBS | |
612 | CPPFLAGS | |
613 | CCC' | |
c7aa54aa DWT |
614 | |
615 | ||
616 | # Initialize some variables set by options. | |
617 | ac_init_help= | |
618 | ac_init_version=false | |
619 | ac_unrecognized_opts= | |
620 | ac_unrecognized_sep= | |
621 | # The variables have the same names as the options, with | |
622 | # dashes changed to underlines. | |
623 | cache_file=/dev/null | |
624 | exec_prefix=NONE | |
625 | no_create= | |
626 | no_recursion= | |
627 | prefix=NONE | |
628 | program_prefix=NONE | |
629 | program_suffix=NONE | |
630 | program_transform_name=s,x,x, | |
631 | silent= | |
632 | site= | |
633 | srcdir= | |
634 | verbose= | |
635 | x_includes=NONE | |
636 | x_libraries=NONE | |
637 | ||
638 | # Installation directory options. | |
639 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
640 | # and all the variables that are supposed to be based on exec_prefix | |
641 | # by default will actually change. | |
642 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
643 | # (The list follows the same order as the GNU Coding Standards.) | |
644 | bindir='${exec_prefix}/bin' | |
645 | sbindir='${exec_prefix}/sbin' | |
646 | libexecdir='${exec_prefix}/libexec' | |
647 | datarootdir='${prefix}/share' | |
648 | datadir='${datarootdir}' | |
649 | sysconfdir='${prefix}/etc' | |
650 | sharedstatedir='${prefix}/com' | |
651 | localstatedir='${prefix}/var' | |
652 | includedir='${prefix}/include' | |
653 | oldincludedir='/usr/include' | |
654 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
655 | infodir='${datarootdir}/info' | |
656 | htmldir='${docdir}' | |
657 | dvidir='${docdir}' | |
658 | pdfdir='${docdir}' | |
659 | psdir='${docdir}' | |
660 | libdir='${exec_prefix}/lib' | |
661 | localedir='${datarootdir}/locale' | |
662 | mandir='${datarootdir}/man' | |
663 | ||
664 | ac_prev= | |
665 | ac_dashdash= | |
666 | for ac_option | |
667 | do | |
668 | # If the previous option needs an argument, assign it. | |
669 | if test -n "$ac_prev"; then | |
670 | eval $ac_prev=\$ac_option | |
671 | ac_prev= | |
672 | continue | |
673 | fi | |
674 | ||
675 | case $ac_option in | |
676 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
677 | *) ac_optarg=yes ;; | |
678 | esac | |
679 | ||
680 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
681 | ||
682 | case $ac_dashdash$ac_option in | |
683 | --) | |
684 | ac_dashdash=yes ;; | |
685 | ||
686 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
687 | ac_prev=bindir ;; | |
688 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
689 | bindir=$ac_optarg ;; | |
690 | ||
691 | -build | --build | --buil | --bui | --bu) | |
692 | ac_prev=build_alias ;; | |
693 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
694 | build_alias=$ac_optarg ;; | |
695 | ||
696 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
697 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
698 | ac_prev=cache_file ;; | |
699 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
700 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
701 | cache_file=$ac_optarg ;; | |
702 | ||
703 | --config-cache | -C) | |
704 | cache_file=config.cache ;; | |
705 | ||
706 | -datadir | --datadir | --datadi | --datad) | |
707 | ac_prev=datadir ;; | |
708 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
709 | datadir=$ac_optarg ;; | |
710 | ||
711 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
712 | | --dataroo | --dataro | --datar) | |
713 | ac_prev=datarootdir ;; | |
714 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
715 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
716 | datarootdir=$ac_optarg ;; | |
717 | ||
718 | -disable-* | --disable-*) | |
719 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
720 | # Reject names that are not valid shell variable names. | |
721 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
722 | as_fn_error "invalid feature name: $ac_useropt" | |
723 | ac_useropt_orig=$ac_useropt | |
724 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
725 | case $ac_user_opts in | |
726 | *" | |
727 | "enable_$ac_useropt" | |
728 | "*) ;; | |
729 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
730 | ac_unrecognized_sep=', ';; | |
731 | esac | |
732 | eval enable_$ac_useropt=no ;; | |
733 | ||
734 | -docdir | --docdir | --docdi | --doc | --do) | |
735 | ac_prev=docdir ;; | |
736 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
737 | docdir=$ac_optarg ;; | |
738 | ||
739 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
740 | ac_prev=dvidir ;; | |
741 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
742 | dvidir=$ac_optarg ;; | |
743 | ||
744 | -enable-* | --enable-*) | |
745 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
746 | # Reject names that are not valid shell variable names. | |
747 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
748 | as_fn_error "invalid feature name: $ac_useropt" | |
749 | ac_useropt_orig=$ac_useropt | |
750 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
751 | case $ac_user_opts in | |
752 | *" | |
753 | "enable_$ac_useropt" | |
754 | "*) ;; | |
755 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
756 | ac_unrecognized_sep=', ';; | |
757 | esac | |
758 | eval enable_$ac_useropt=\$ac_optarg ;; | |
759 | ||
760 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
761 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
762 | | --exec | --exe | --ex) | |
763 | ac_prev=exec_prefix ;; | |
764 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
765 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
766 | | --exec=* | --exe=* | --ex=*) | |
767 | exec_prefix=$ac_optarg ;; | |
768 | ||
769 | -gas | --gas | --ga | --g) | |
770 | # Obsolete; use --with-gas. | |
771 | with_gas=yes ;; | |
772 | ||
773 | -help | --help | --hel | --he | -h) | |
774 | ac_init_help=long ;; | |
775 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
776 | ac_init_help=recursive ;; | |
777 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
778 | ac_init_help=short ;; | |
779 | ||
780 | -host | --host | --hos | --ho) | |
781 | ac_prev=host_alias ;; | |
782 | -host=* | --host=* | --hos=* | --ho=*) | |
783 | host_alias=$ac_optarg ;; | |
784 | ||
785 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
786 | ac_prev=htmldir ;; | |
787 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
788 | | --ht=*) | |
789 | htmldir=$ac_optarg ;; | |
790 | ||
791 | -includedir | --includedir | --includedi | --included | --include \ | |
792 | | --includ | --inclu | --incl | --inc) | |
793 | ac_prev=includedir ;; | |
794 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
795 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
796 | includedir=$ac_optarg ;; | |
797 | ||
798 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
799 | ac_prev=infodir ;; | |
800 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
801 | infodir=$ac_optarg ;; | |
802 | ||
803 | -libdir | --libdir | --libdi | --libd) | |
804 | ac_prev=libdir ;; | |
805 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
806 | libdir=$ac_optarg ;; | |
807 | ||
808 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
809 | | --libexe | --libex | --libe) | |
810 | ac_prev=libexecdir ;; | |
811 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
812 | | --libexe=* | --libex=* | --libe=*) | |
813 | libexecdir=$ac_optarg ;; | |
814 | ||
815 | -localedir | --localedir | --localedi | --localed | --locale) | |
816 | ac_prev=localedir ;; | |
817 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
818 | localedir=$ac_optarg ;; | |
819 | ||
820 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
821 | | --localstate | --localstat | --localsta | --localst | --locals) | |
822 | ac_prev=localstatedir ;; | |
823 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
824 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
825 | localstatedir=$ac_optarg ;; | |
826 | ||
827 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
828 | ac_prev=mandir ;; | |
829 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
830 | mandir=$ac_optarg ;; | |
831 | ||
832 | -nfp | --nfp | --nf) | |
833 | # Obsolete; use --without-fp. | |
834 | with_fp=no ;; | |
835 | ||
836 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
837 | | --no-cr | --no-c | -n) | |
838 | no_create=yes ;; | |
839 | ||
840 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
841 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
842 | no_recursion=yes ;; | |
843 | ||
844 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
845 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
846 | | --oldin | --oldi | --old | --ol | --o) | |
847 | ac_prev=oldincludedir ;; | |
848 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
849 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
850 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
851 | oldincludedir=$ac_optarg ;; | |
852 | ||
853 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
854 | ac_prev=prefix ;; | |
855 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
856 | prefix=$ac_optarg ;; | |
857 | ||
858 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
859 | | --program-pre | --program-pr | --program-p) | |
860 | ac_prev=program_prefix ;; | |
861 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
862 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
863 | program_prefix=$ac_optarg ;; | |
864 | ||
865 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
866 | | --program-suf | --program-su | --program-s) | |
867 | ac_prev=program_suffix ;; | |
868 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
869 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
870 | program_suffix=$ac_optarg ;; | |
871 | ||
872 | -program-transform-name | --program-transform-name \ | |
873 | | --program-transform-nam | --program-transform-na \ | |
874 | | --program-transform-n | --program-transform- \ | |
875 | | --program-transform | --program-transfor \ | |
876 | | --program-transfo | --program-transf \ | |
877 | | --program-trans | --program-tran \ | |
878 | | --progr-tra | --program-tr | --program-t) | |
879 | ac_prev=program_transform_name ;; | |
880 | -program-transform-name=* | --program-transform-name=* \ | |
881 | | --program-transform-nam=* | --program-transform-na=* \ | |
882 | | --program-transform-n=* | --program-transform-=* \ | |
883 | | --program-transform=* | --program-transfor=* \ | |
884 | | --program-transfo=* | --program-transf=* \ | |
885 | | --program-trans=* | --program-tran=* \ | |
886 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
887 | program_transform_name=$ac_optarg ;; | |
888 | ||
889 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
890 | ac_prev=pdfdir ;; | |
891 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
892 | pdfdir=$ac_optarg ;; | |
893 | ||
894 | -psdir | --psdir | --psdi | --psd | --ps) | |
895 | ac_prev=psdir ;; | |
896 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
897 | psdir=$ac_optarg ;; | |
898 | ||
899 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
900 | | -silent | --silent | --silen | --sile | --sil) | |
901 | silent=yes ;; | |
902 | ||
903 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
904 | ac_prev=sbindir ;; | |
905 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
906 | | --sbi=* | --sb=*) | |
907 | sbindir=$ac_optarg ;; | |
908 | ||
909 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
910 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
911 | | --sharedst | --shareds | --shared | --share | --shar \ | |
912 | | --sha | --sh) | |
913 | ac_prev=sharedstatedir ;; | |
914 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
915 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
916 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
917 | | --sha=* | --sh=*) | |
918 | sharedstatedir=$ac_optarg ;; | |
919 | ||
920 | -site | --site | --sit) | |
921 | ac_prev=site ;; | |
922 | -site=* | --site=* | --sit=*) | |
923 | site=$ac_optarg ;; | |
924 | ||
925 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
926 | ac_prev=srcdir ;; | |
927 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
928 | srcdir=$ac_optarg ;; | |
929 | ||
930 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
931 | | --syscon | --sysco | --sysc | --sys | --sy) | |
932 | ac_prev=sysconfdir ;; | |
933 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
934 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
935 | sysconfdir=$ac_optarg ;; | |
936 | ||
937 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
938 | ac_prev=target_alias ;; | |
939 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
940 | target_alias=$ac_optarg ;; | |
941 | ||
942 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
943 | verbose=yes ;; | |
944 | ||
945 | -version | --version | --versio | --versi | --vers | -V) | |
946 | ac_init_version=: ;; | |
947 | ||
948 | -with-* | --with-*) | |
949 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
950 | # Reject names that are not valid shell variable names. | |
951 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
952 | as_fn_error "invalid package name: $ac_useropt" | |
953 | ac_useropt_orig=$ac_useropt | |
954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
955 | case $ac_user_opts in | |
956 | *" | |
957 | "with_$ac_useropt" | |
958 | "*) ;; | |
959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
960 | ac_unrecognized_sep=', ';; | |
961 | esac | |
962 | eval with_$ac_useropt=\$ac_optarg ;; | |
963 | ||
964 | -without-* | --without-*) | |
965 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
966 | # Reject names that are not valid shell variable names. | |
967 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
968 | as_fn_error "invalid package name: $ac_useropt" | |
969 | ac_useropt_orig=$ac_useropt | |
970 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
971 | case $ac_user_opts in | |
972 | *" | |
973 | "with_$ac_useropt" | |
974 | "*) ;; | |
975 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
976 | ac_unrecognized_sep=', ';; | |
977 | esac | |
978 | eval with_$ac_useropt=no ;; | |
979 | ||
980 | --x) | |
981 | # Obsolete; use --with-x. | |
982 | with_x=yes ;; | |
983 | ||
984 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
985 | | --x-incl | --x-inc | --x-in | --x-i) | |
986 | ac_prev=x_includes ;; | |
987 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
988 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
989 | x_includes=$ac_optarg ;; | |
990 | ||
991 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
992 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
993 | ac_prev=x_libraries ;; | |
994 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
995 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
996 | x_libraries=$ac_optarg ;; | |
997 | ||
998 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
999 | Try \`$0 --help' for more information." | |
1000 | ;; | |
1001 | ||
1002 | *=*) | |
1003 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1004 | # Reject names that are not valid shell variable names. | |
1005 | case $ac_envvar in #( | |
1006 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1007 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1008 | esac | |
1009 | eval $ac_envvar=\$ac_optarg | |
1010 | export $ac_envvar ;; | |
1011 | ||
1012 | *) | |
1013 | # FIXME: should be removed in autoconf 3.0. | |
1014 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1015 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1016 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1017 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1018 | ;; | |
1019 | ||
1020 | esac | |
1021 | done | |
1022 | ||
1023 | if test -n "$ac_prev"; then | |
1024 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1025 | as_fn_error "missing argument to $ac_option" | |
1026 | fi | |
1027 | ||
1028 | if test -n "$ac_unrecognized_opts"; then | |
1029 | case $enable_option_checking in | |
1030 | no) ;; | |
1031 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1032 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1033 | esac | |
1034 | fi | |
1035 | ||
1036 | # Check all directory arguments for consistency. | |
1037 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1038 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1039 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1040 | libdir localedir mandir | |
1041 | do | |
1042 | eval ac_val=\$$ac_var | |
1043 | # Remove trailing slashes. | |
1044 | case $ac_val in | |
1045 | */ ) | |
1046 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1047 | eval $ac_var=\$ac_val;; | |
1048 | esac | |
1049 | # Be sure to have absolute directory names. | |
1050 | case $ac_val in | |
1051 | [\\/$]* | ?:[\\/]* ) continue;; | |
1052 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1053 | esac | |
1054 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1055 | done | |
1056 | ||
1057 | # There might be people who depend on the old broken behavior: `$host' | |
1058 | # used to hold the argument of --host etc. | |
1059 | # FIXME: To remove some day. | |
1060 | build=$build_alias | |
1061 | host=$host_alias | |
1062 | target=$target_alias | |
1063 | ||
1064 | # FIXME: To remove some day. | |
1065 | if test "x$host_alias" != x; then | |
1066 | if test "x$build_alias" = x; then | |
1067 | cross_compiling=maybe | |
1068 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1069 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1070 | elif test "x$build_alias" != "x$host_alias"; then | |
1071 | cross_compiling=yes | |
1072 | fi | |
1073 | fi | |
1074 | ||
1075 | ac_tool_prefix= | |
1076 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1077 | ||
1078 | test "$silent" = yes && exec 6>/dev/null | |
1079 | ||
1080 | ||
1081 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1082 | ac_ls_di=`ls -di .` && | |
1083 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1084 | as_fn_error "working directory cannot be determined" | |
1085 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1086 | as_fn_error "pwd does not report name of working directory" | |
1087 | ||
1088 | ||
1089 | # Find the source files, if location was not specified. | |
1090 | if test -z "$srcdir"; then | |
1091 | ac_srcdir_defaulted=yes | |
1092 | # Try the directory containing this script, then the parent directory. | |
1093 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1094 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1095 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1096 | X"$as_myself" : 'X\(//\)$' \| \ | |
1097 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1098 | $as_echo X"$as_myself" | | |
1099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1100 | s//\1/ | |
1101 | q | |
1102 | } | |
1103 | /^X\(\/\/\)[^/].*/{ | |
1104 | s//\1/ | |
1105 | q | |
1106 | } | |
1107 | /^X\(\/\/\)$/{ | |
1108 | s//\1/ | |
1109 | q | |
1110 | } | |
1111 | /^X\(\/\).*/{ | |
1112 | s//\1/ | |
1113 | q | |
1114 | } | |
1115 | s/.*/./; q'` | |
1116 | srcdir=$ac_confdir | |
1117 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1118 | srcdir=.. | |
1119 | fi | |
1120 | else | |
1121 | ac_srcdir_defaulted=no | |
1122 | fi | |
1123 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1124 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1125 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1126 | fi | |
1127 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1128 | ac_abs_confdir=`( | |
1129 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1130 | pwd)` | |
1131 | # When building in place, set srcdir=. | |
1132 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1133 | srcdir=. | |
1134 | fi | |
1135 | # Remove unnecessary trailing slashes from srcdir. | |
1136 | # Double slashes in file names in object file debugging info | |
1137 | # mess up M-x gdb in Emacs. | |
1138 | case $srcdir in | |
1139 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1140 | esac | |
1141 | for ac_var in $ac_precious_vars; do | |
1142 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1143 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1144 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1145 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1146 | done | |
1147 | ||
1148 | # | |
1149 | # Report the --help message. | |
1150 | # | |
1151 | if test "$ac_init_help" = "long"; then | |
1152 | # Omit some internal or obsolete options to make the list less imposing. | |
1153 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1154 | cat <<_ACEOF | |
1155 | \`configure' configures Cycript 0.9 to adapt to many kinds of systems. | |
1156 | ||
1157 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1158 | ||
1159 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1160 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1161 | ||
1162 | Defaults for the options are specified in brackets. | |
1163 | ||
1164 | Configuration: | |
1165 | -h, --help display this help and exit | |
1166 | --help=short display options specific to this package | |
1167 | --help=recursive display the short help of all the included packages | |
1168 | -V, --version display version information and exit | |
1169 | -q, --quiet, --silent do not print \`checking...' messages | |
1170 | --cache-file=FILE cache test results in FILE [disabled] | |
1171 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1172 | -n, --no-create do not create output files | |
1173 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1174 | ||
1175 | Installation directories: | |
1176 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1177 | [$ac_default_prefix] | |
1178 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1179 | [PREFIX] | |
1180 | ||
1181 | By default, \`make install' will install all the files in | |
1182 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1183 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1184 | for instance \`--prefix=\$HOME'. | |
1185 | ||
1186 | For better control, use the options below. | |
1187 | ||
1188 | Fine tuning of the installation directories: | |
1189 | --bindir=DIR user executables [EPREFIX/bin] | |
1190 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1191 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1192 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1193 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1194 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1195 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1196 | --includedir=DIR C header files [PREFIX/include] | |
1197 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1198 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1199 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1200 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1201 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1202 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1203 | --docdir=DIR documentation root [DATAROOTDIR/doc/cycript] | |
1204 | --htmldir=DIR html documentation [DOCDIR] | |
1205 | --dvidir=DIR dvi documentation [DOCDIR] | |
1206 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1207 | --psdir=DIR ps documentation [DOCDIR] | |
1208 | _ACEOF | |
1209 | ||
1210 | cat <<\_ACEOF | |
1211 | _ACEOF | |
1212 | fi | |
1213 | ||
1214 | if test -n "$ac_init_help"; then | |
1215 | case $ac_init_help in | |
1216 | short | recursive ) echo "Configuration of Cycript 0.9:";; | |
1217 | esac | |
1218 | cat <<\_ACEOF | |
1219 | ||
dbadc56a DWT |
1220 | Some influential environment variables: |
1221 | CXX C++ compiler command | |
1222 | CXXFLAGS C++ compiler flags | |
1223 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1224 | nonstandard directory <lib dir> | |
1225 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1226 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1227 | you have headers in a nonstandard directory <include dir> | |
1228 | ||
1229 | Use these variables to override the choices made by `configure' or to help | |
1230 | it to find libraries and programs with nonstandard names/locations. | |
1231 | ||
c7aa54aa DWT |
1232 | Report bugs to <saurik@saurik.com>. |
1233 | Cycript home page: <http://www.cycript.org/>. | |
1234 | _ACEOF | |
1235 | ac_status=$? | |
1236 | fi | |
1237 | ||
1238 | if test "$ac_init_help" = "recursive"; then | |
1239 | # If there are subdirs, report their specific --help. | |
1240 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1241 | test -d "$ac_dir" || | |
1242 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1243 | continue | |
1244 | ac_builddir=. | |
1245 | ||
1246 | case "$ac_dir" in | |
1247 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1248 | *) | |
1249 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1250 | # A ".." for each directory in $ac_dir_suffix. | |
1251 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1252 | case $ac_top_builddir_sub in | |
1253 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1254 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1255 | esac ;; | |
1256 | esac | |
1257 | ac_abs_top_builddir=$ac_pwd | |
1258 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1259 | # for backward compatibility: | |
1260 | ac_top_builddir=$ac_top_build_prefix | |
1261 | ||
1262 | case $srcdir in | |
1263 | .) # We are building in place. | |
1264 | ac_srcdir=. | |
1265 | ac_top_srcdir=$ac_top_builddir_sub | |
1266 | ac_abs_top_srcdir=$ac_pwd ;; | |
1267 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1268 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1269 | ac_top_srcdir=$srcdir | |
1270 | ac_abs_top_srcdir=$srcdir ;; | |
1271 | *) # Relative name. | |
1272 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1273 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1274 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1275 | esac | |
1276 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1277 | ||
1278 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1279 | # Check for guested configure. | |
1280 | if test -f "$ac_srcdir/configure.gnu"; then | |
1281 | echo && | |
1282 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1283 | elif test -f "$ac_srcdir/configure"; then | |
1284 | echo && | |
1285 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1286 | else | |
1287 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1288 | fi || ac_status=$? | |
1289 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1290 | done | |
1291 | fi | |
1292 | ||
1293 | test -n "$ac_init_help" && exit $ac_status | |
1294 | if $ac_init_version; then | |
1295 | cat <<\_ACEOF | |
1296 | Cycript configure 0.9 | |
1297 | generated by GNU Autoconf 2.64 | |
1298 | ||
1299 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1300 | This configure script is free software; the Free Software Foundation | |
1301 | gives unlimited permission to copy, distribute and modify it. | |
1302 | _ACEOF | |
1303 | exit | |
1304 | fi | |
1305 | ||
1306 | ## ------------------------ ## | |
1307 | ## Autoconf initialization. ## | |
1308 | ## ------------------------ ## | |
dbadc56a DWT |
1309 | |
1310 | # ac_fn_cxx_try_compile LINENO | |
1311 | # ---------------------------- | |
1312 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1313 | ac_fn_cxx_try_compile () | |
1314 | { | |
1315 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1316 | rm -f conftest.$ac_objext | |
1317 | if { { ac_try="$ac_compile" | |
1318 | case "(($ac_try" in | |
1319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1320 | *) ac_try_echo=$ac_try;; | |
1321 | esac | |
1322 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1323 | $as_echo "$ac_try_echo"; } >&5 | |
1324 | (eval "$ac_compile") 2>conftest.err | |
1325 | ac_status=$? | |
1326 | if test -s conftest.err; then | |
1327 | grep -v '^ *+' conftest.err >conftest.er1 | |
1328 | cat conftest.er1 >&5 | |
1329 | mv -f conftest.er1 conftest.err | |
1330 | fi | |
1331 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1332 | test $ac_status = 0; } && { | |
1333 | test -z "$ac_cxx_werror_flag" || | |
1334 | test ! -s conftest.err | |
1335 | } && test -s conftest.$ac_objext; then : | |
1336 | ac_retval=0 | |
1337 | else | |
1338 | $as_echo "$as_me: failed program was:" >&5 | |
1339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1340 | ||
1341 | ac_retval=1 | |
1342 | fi | |
1343 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1344 | return $ac_retval | |
1345 | ||
1346 | } # ac_fn_cxx_try_compile | |
c7aa54aa DWT |
1347 | cat >config.log <<_ACEOF |
1348 | This file contains any messages produced by compilers while | |
1349 | running configure, to aid debugging if configure makes a mistake. | |
1350 | ||
1351 | It was created by Cycript $as_me 0.9, which was | |
1352 | generated by GNU Autoconf 2.64. Invocation command line was | |
1353 | ||
1354 | $ $0 $@ | |
1355 | ||
1356 | _ACEOF | |
1357 | exec 5>>config.log | |
1358 | { | |
1359 | cat <<_ASUNAME | |
1360 | ## --------- ## | |
1361 | ## Platform. ## | |
1362 | ## --------- ## | |
1363 | ||
1364 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1365 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1366 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1367 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1368 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1369 | ||
1370 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1371 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1372 | ||
1373 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1374 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1375 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1376 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1377 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1378 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1379 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1380 | ||
1381 | _ASUNAME | |
1382 | ||
1383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1384 | for as_dir in $PATH | |
1385 | do | |
1386 | IFS=$as_save_IFS | |
1387 | test -z "$as_dir" && as_dir=. | |
1388 | $as_echo "PATH: $as_dir" | |
1389 | done | |
1390 | IFS=$as_save_IFS | |
1391 | ||
1392 | } >&5 | |
1393 | ||
1394 | cat >&5 <<_ACEOF | |
1395 | ||
1396 | ||
1397 | ## ----------- ## | |
1398 | ## Core tests. ## | |
1399 | ## ----------- ## | |
1400 | ||
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | # Keep a trace of the command line. | |
1405 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1406 | # Strip out --silent because we don't want to record it for future runs. | |
1407 | # Also quote any args containing shell meta-characters. | |
1408 | # Make two passes to allow for proper duplicate-argument suppression. | |
1409 | ac_configure_args= | |
1410 | ac_configure_args0= | |
1411 | ac_configure_args1= | |
1412 | ac_must_keep_next=false | |
1413 | for ac_pass in 1 2 | |
1414 | do | |
1415 | for ac_arg | |
1416 | do | |
1417 | case $ac_arg in | |
1418 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1419 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1420 | | -silent | --silent | --silen | --sile | --sil) | |
1421 | continue ;; | |
1422 | *\'*) | |
1423 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1424 | esac | |
1425 | case $ac_pass in | |
1426 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1427 | 2) | |
1428 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1429 | if test $ac_must_keep_next = true; then | |
1430 | ac_must_keep_next=false # Got value, back to normal. | |
1431 | else | |
1432 | case $ac_arg in | |
1433 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1434 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1435 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1436 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1437 | case "$ac_configure_args0 " in | |
1438 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1439 | esac | |
1440 | ;; | |
1441 | -* ) ac_must_keep_next=true ;; | |
1442 | esac | |
1443 | fi | |
1444 | as_fn_append ac_configure_args " '$ac_arg'" | |
1445 | ;; | |
1446 | esac | |
1447 | done | |
1448 | done | |
1449 | { ac_configure_args0=; unset ac_configure_args0;} | |
1450 | { ac_configure_args1=; unset ac_configure_args1;} | |
1451 | ||
1452 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1453 | # config.log. We remove comments because anyway the quotes in there | |
1454 | # would cause problems or look ugly. | |
1455 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1456 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1457 | trap 'exit_status=$? | |
1458 | # Save into config.log some information that might help in debugging. | |
1459 | { | |
1460 | echo | |
1461 | ||
1462 | cat <<\_ASBOX | |
1463 | ## ---------------- ## | |
1464 | ## Cache variables. ## | |
1465 | ## ---------------- ## | |
1466 | _ASBOX | |
1467 | echo | |
1468 | # The following way of writing the cache mishandles newlines in values, | |
1469 | ( | |
1470 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1471 | eval ac_val=\$$ac_var | |
1472 | case $ac_val in #( | |
1473 | *${as_nl}*) | |
1474 | case $ac_var in #( | |
1475 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1476 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1477 | esac | |
1478 | case $ac_var in #( | |
1479 | _ | IFS | as_nl) ;; #( | |
1480 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1481 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1482 | esac ;; | |
1483 | esac | |
1484 | done | |
1485 | (set) 2>&1 | | |
1486 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1487 | *${as_nl}ac_space=\ *) | |
1488 | sed -n \ | |
1489 | "s/'\''/'\''\\\\'\'''\''/g; | |
1490 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1491 | ;; #( | |
1492 | *) | |
1493 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1494 | ;; | |
1495 | esac | | |
1496 | sort | |
1497 | ) | |
1498 | echo | |
1499 | ||
1500 | cat <<\_ASBOX | |
1501 | ## ----------------- ## | |
1502 | ## Output variables. ## | |
1503 | ## ----------------- ## | |
1504 | _ASBOX | |
1505 | echo | |
1506 | for ac_var in $ac_subst_vars | |
1507 | do | |
1508 | eval ac_val=\$$ac_var | |
1509 | case $ac_val in | |
1510 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1511 | esac | |
1512 | $as_echo "$ac_var='\''$ac_val'\''" | |
1513 | done | sort | |
1514 | echo | |
1515 | ||
1516 | if test -n "$ac_subst_files"; then | |
1517 | cat <<\_ASBOX | |
1518 | ## ------------------- ## | |
1519 | ## File substitutions. ## | |
1520 | ## ------------------- ## | |
1521 | _ASBOX | |
1522 | echo | |
1523 | for ac_var in $ac_subst_files | |
1524 | do | |
1525 | eval ac_val=\$$ac_var | |
1526 | case $ac_val in | |
1527 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1528 | esac | |
1529 | $as_echo "$ac_var='\''$ac_val'\''" | |
1530 | done | sort | |
1531 | echo | |
1532 | fi | |
1533 | ||
1534 | if test -s confdefs.h; then | |
1535 | cat <<\_ASBOX | |
1536 | ## ----------- ## | |
1537 | ## confdefs.h. ## | |
1538 | ## ----------- ## | |
1539 | _ASBOX | |
1540 | echo | |
1541 | cat confdefs.h | |
1542 | echo | |
1543 | fi | |
1544 | test "$ac_signal" != 0 && | |
1545 | $as_echo "$as_me: caught signal $ac_signal" | |
1546 | $as_echo "$as_me: exit $exit_status" | |
1547 | } >&5 | |
1548 | rm -f core *.core core.conftest.* && | |
1549 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1550 | exit $exit_status | |
1551 | ' 0 | |
1552 | for ac_signal in 1 2 13 15; do | |
1553 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1554 | done | |
1555 | ac_signal=0 | |
1556 | ||
1557 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1558 | rm -f -r conftest* confdefs.h | |
1559 | ||
1560 | $as_echo "/* confdefs.h */" > confdefs.h | |
1561 | ||
1562 | # Predefined preprocessor variables. | |
1563 | ||
1564 | cat >>confdefs.h <<_ACEOF | |
1565 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1566 | _ACEOF | |
1567 | ||
1568 | cat >>confdefs.h <<_ACEOF | |
1569 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1570 | _ACEOF | |
1571 | ||
1572 | cat >>confdefs.h <<_ACEOF | |
1573 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1574 | _ACEOF | |
1575 | ||
1576 | cat >>confdefs.h <<_ACEOF | |
1577 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1578 | _ACEOF | |
1579 | ||
1580 | cat >>confdefs.h <<_ACEOF | |
1581 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1582 | _ACEOF | |
1583 | ||
1584 | cat >>confdefs.h <<_ACEOF | |
1585 | #define PACKAGE_URL "$PACKAGE_URL" | |
1586 | _ACEOF | |
1587 | ||
1588 | ||
1589 | # Let the site file select an alternate cache file if it wants to. | |
1590 | # Prefer an explicitly selected file to automatically selected ones. | |
1591 | ac_site_file1=NONE | |
1592 | ac_site_file2=NONE | |
1593 | if test -n "$CONFIG_SITE"; then | |
1594 | ac_site_file1=$CONFIG_SITE | |
1595 | elif test "x$prefix" != xNONE; then | |
1596 | ac_site_file1=$prefix/share/config.site | |
1597 | ac_site_file2=$prefix/etc/config.site | |
1598 | else | |
1599 | ac_site_file1=$ac_default_prefix/share/config.site | |
1600 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1601 | fi | |
1602 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1603 | do | |
1604 | test "x$ac_site_file" = xNONE && continue | |
1605 | if test -r "$ac_site_file"; then | |
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1607 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1608 | sed 's/^/| /' "$ac_site_file" >&5 | |
1609 | . "$ac_site_file" | |
1610 | fi | |
1611 | done | |
1612 | ||
1613 | if test -r "$cache_file"; then | |
1614 | # Some versions of bash will fail to source /dev/null (special | |
1615 | # files actually), so we avoid doing that. | |
1616 | if test -f "$cache_file"; then | |
1617 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1618 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1619 | case $cache_file in | |
1620 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1621 | *) . "./$cache_file";; | |
1622 | esac | |
1623 | fi | |
1624 | else | |
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1626 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1627 | >$cache_file | |
1628 | fi | |
1629 | ||
1630 | # Check that the precious variables saved in the cache have kept the same | |
1631 | # value. | |
1632 | ac_cache_corrupted=false | |
1633 | for ac_var in $ac_precious_vars; do | |
1634 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1635 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1636 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1637 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1638 | case $ac_old_set,$ac_new_set in | |
1639 | set,) | |
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1641 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1642 | ac_cache_corrupted=: ;; | |
1643 | ,set) | |
1644 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1645 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1646 | ac_cache_corrupted=: ;; | |
1647 | ,);; | |
1648 | *) | |
1649 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1650 | # differences in whitespace do not lead to failure. | |
1651 | ac_old_val_w=`echo x $ac_old_val` | |
1652 | ac_new_val_w=`echo x $ac_new_val` | |
1653 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1655 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1656 | ac_cache_corrupted=: | |
1657 | else | |
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1659 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1660 | eval $ac_var=\$ac_old_val | |
1661 | fi | |
1662 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1663 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1665 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1666 | fi;; | |
1667 | esac | |
1668 | # Pass precious variables to config.status. | |
1669 | if test "$ac_new_set" = set; then | |
1670 | case $ac_new_val in | |
1671 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1672 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1673 | esac | |
1674 | case " $ac_configure_args " in | |
1675 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1676 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1677 | esac | |
1678 | fi | |
1679 | done | |
1680 | if $ac_cache_corrupted; then | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1682 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1684 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1685 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
1686 | fi | |
1687 | ## -------------------- ## | |
1688 | ## Main body of script. ## | |
1689 | ## -------------------- ## | |
1690 | ||
1691 | ac_ext=c | |
1692 | ac_cpp='$CPP $CPPFLAGS' | |
1693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1696 | ||
1697 | ||
dbadc56a DWT |
1698 | ac_ext=cpp |
1699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1703 | if test -z "$CXX"; then | |
1704 | if test -n "$CCC"; then | |
1705 | CXX=$CCC | |
1706 | else | |
1707 | if test -n "$ac_tool_prefix"; then | |
1708 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
1709 | do | |
1710 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1711 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1713 | $as_echo_n "checking for $ac_word... " >&6; } | |
1714 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
1715 | $as_echo_n "(cached) " >&6 | |
1716 | else | |
1717 | if test -n "$CXX"; then | |
1718 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1719 | else | |
1720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1721 | for as_dir in $PATH | |
1722 | do | |
1723 | IFS=$as_save_IFS | |
1724 | test -z "$as_dir" && as_dir=. | |
1725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1727 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
1728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1729 | break 2 | |
1730 | fi | |
1731 | done | |
1732 | done | |
1733 | IFS=$as_save_IFS | |
1734 | ||
1735 | fi | |
1736 | fi | |
1737 | CXX=$ac_cv_prog_CXX | |
1738 | if test -n "$CXX"; then | |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
1740 | $as_echo "$CXX" >&6; } | |
1741 | else | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1743 | $as_echo "no" >&6; } | |
1744 | fi | |
1745 | ||
1746 | ||
1747 | test -n "$CXX" && break | |
1748 | done | |
1749 | fi | |
1750 | if test -z "$CXX"; then | |
1751 | ac_ct_CXX=$CXX | |
1752 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
1753 | do | |
1754 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1755 | set dummy $ac_prog; ac_word=$2 | |
1756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
1757 | $as_echo_n "checking for $ac_word... " >&6; } | |
1758 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
1759 | $as_echo_n "(cached) " >&6 | |
1760 | else | |
1761 | if test -n "$ac_ct_CXX"; then | |
1762 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1763 | else | |
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1765 | for as_dir in $PATH | |
1766 | do | |
1767 | IFS=$as_save_IFS | |
1768 | test -z "$as_dir" && as_dir=. | |
1769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1771 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
1772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1773 | break 2 | |
1774 | fi | |
1775 | done | |
1776 | done | |
1777 | IFS=$as_save_IFS | |
1778 | ||
1779 | fi | |
1780 | fi | |
1781 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
1782 | if test -n "$ac_ct_CXX"; then | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
1784 | $as_echo "$ac_ct_CXX" >&6; } | |
1785 | else | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1787 | $as_echo "no" >&6; } | |
1788 | fi | |
1789 | ||
1790 | ||
1791 | test -n "$ac_ct_CXX" && break | |
1792 | done | |
1793 | ||
1794 | if test "x$ac_ct_CXX" = x; then | |
1795 | CXX="g++" | |
1796 | else | |
1797 | case $cross_compiling:$ac_tool_warned in | |
1798 | yes:) | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
1800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1801 | ac_tool_warned=yes ;; | |
1802 | esac | |
1803 | CXX=$ac_ct_CXX | |
1804 | fi | |
1805 | fi | |
1806 | ||
1807 | fi | |
1808 | fi | |
1809 | # Provide some information about the compiler. | |
1810 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
1811 | set X $ac_compile | |
1812 | ac_compiler=$2 | |
1813 | for ac_option in --version -v -V -qversion; do | |
1814 | { { ac_try="$ac_compiler $ac_option >&5" | |
1815 | case "(($ac_try" in | |
1816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1817 | *) ac_try_echo=$ac_try;; | |
1818 | esac | |
1819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1820 | $as_echo "$ac_try_echo"; } >&5 | |
1821 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1822 | ac_status=$? | |
1823 | if test -s conftest.err; then | |
1824 | sed '10a\ | |
1825 | ... rest of stderr output deleted ... | |
1826 | 10q' conftest.err >conftest.er1 | |
1827 | cat conftest.er1 >&5 | |
1828 | rm -f conftest.er1 conftest.err | |
1829 | fi | |
1830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1831 | test $ac_status = 0; } | |
1832 | done | |
1833 | ||
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | #include <stdio.h> | |
1837 | int | |
1838 | main () | |
1839 | { | |
1840 | FILE *f = fopen ("conftest.out", "w"); | |
1841 | return ferror (f) || fclose (f) != 0; | |
1842 | ||
1843 | ; | |
1844 | return 0; | |
1845 | } | |
1846 | _ACEOF | |
1847 | ac_clean_files_save=$ac_clean_files | |
1848 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
1849 | # Try to create an executable without -o first, disregard a.out. | |
1850 | # It will help us diagnose broken compilers, and finding out an intuition | |
1851 | # of exeext. | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 | |
1853 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
1854 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1855 | ||
1856 | # The possible output files: | |
1857 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
1858 | ||
1859 | ac_rmfiles= | |
1860 | for ac_file in $ac_files | |
1861 | do | |
1862 | case $ac_file in | |
1863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
1864 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
1865 | esac | |
1866 | done | |
1867 | rm -f $ac_rmfiles | |
1868 | ||
1869 | if { { ac_try="$ac_link_default" | |
1870 | case "(($ac_try" in | |
1871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1872 | *) ac_try_echo=$ac_try;; | |
1873 | esac | |
1874 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1875 | $as_echo "$ac_try_echo"; } >&5 | |
1876 | (eval "$ac_link_default") 2>&5 | |
1877 | ac_status=$? | |
1878 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1879 | test $ac_status = 0; }; then : | |
1880 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
1881 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
1882 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
1883 | # so that the user can short-circuit this test for compilers unknown to | |
1884 | # Autoconf. | |
1885 | for ac_file in $ac_files '' | |
1886 | do | |
1887 | test -f "$ac_file" || continue | |
1888 | case $ac_file in | |
1889 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
1890 | ;; | |
1891 | [ab].out ) | |
1892 | # We found the default executable, but exeext='' is most | |
1893 | # certainly right. | |
1894 | break;; | |
1895 | *.* ) | |
1896 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
1897 | then :; else | |
1898 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1899 | fi | |
1900 | # We set ac_cv_exeext here because the later test for it is not | |
1901 | # safe: cross compilers may not add the suffix if given an `-o' | |
1902 | # argument, so we may need to know it at that point already. | |
1903 | # Even if this section looks crufty: it has the advantage of | |
1904 | # actually working. | |
1905 | break;; | |
1906 | * ) | |
1907 | break;; | |
1908 | esac | |
1909 | done | |
1910 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
1911 | ||
1912 | else | |
1913 | ac_file='' | |
1914 | fi | |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
1916 | $as_echo "$ac_file" >&6; } | |
1917 | if test -z "$ac_file"; then : | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1920 | ||
1921 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1922 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1923 | { as_fn_set_status 77 | |
1924 | as_fn_error "C++ compiler cannot create executables | |
1925 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1926 | fi | |
1927 | ac_exeext=$ac_cv_exeext | |
1928 | ||
1929 | # Check that the compiler produces executables we can run. If not, either | |
1930 | # the compiler is broken, or we cross compile. | |
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 | |
1932 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
1933 | # If not cross compiling, check that we can run a simple program. | |
1934 | if test "$cross_compiling" != yes; then | |
1935 | if { ac_try='./$ac_file' | |
1936 | { { case "(($ac_try" in | |
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1938 | *) ac_try_echo=$ac_try;; | |
1939 | esac | |
1940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1941 | $as_echo "$ac_try_echo"; } >&5 | |
1942 | (eval "$ac_try") 2>&5 | |
1943 | ac_status=$? | |
1944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1945 | test $ac_status = 0; }; }; then | |
1946 | cross_compiling=no | |
1947 | else | |
1948 | if test "$cross_compiling" = maybe; then | |
1949 | cross_compiling=yes | |
1950 | else | |
1951 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1952 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1953 | as_fn_error "cannot run C++ compiled programs. | |
1954 | If you meant to cross compile, use \`--host'. | |
1955 | See \`config.log' for more details." "$LINENO" 5; } | |
1956 | fi | |
1957 | fi | |
1958 | fi | |
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
1960 | $as_echo "yes" >&6; } | |
1961 | ||
1962 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out | |
1963 | ac_clean_files=$ac_clean_files_save | |
1964 | # Check that the compiler produces executables we can run. If not, either | |
1965 | # the compiler is broken, or we cross compile. | |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
1967 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
1969 | $as_echo "$cross_compiling" >&6; } | |
1970 | ||
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
1972 | $as_echo_n "checking for suffix of executables... " >&6; } | |
1973 | if { { ac_try="$ac_link" | |
1974 | case "(($ac_try" in | |
1975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1976 | *) ac_try_echo=$ac_try;; | |
1977 | esac | |
1978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1979 | $as_echo "$ac_try_echo"; } >&5 | |
1980 | (eval "$ac_link") 2>&5 | |
1981 | ac_status=$? | |
1982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1983 | test $ac_status = 0; }; then : | |
1984 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1985 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1986 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1987 | # `rm'. | |
1988 | for ac_file in conftest.exe conftest conftest.*; do | |
1989 | test -f "$ac_file" || continue | |
1990 | case $ac_file in | |
1991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
1992 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1993 | break;; | |
1994 | * ) break;; | |
1995 | esac | |
1996 | done | |
1997 | else | |
1998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2000 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2001 | See \`config.log' for more details." "$LINENO" 5; } | |
2002 | fi | |
2003 | rm -f conftest$ac_cv_exeext | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2005 | $as_echo "$ac_cv_exeext" >&6; } | |
2006 | ||
2007 | rm -f conftest.$ac_ext | |
2008 | EXEEXT=$ac_cv_exeext | |
2009 | ac_exeext=$EXEEXT | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2011 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2012 | if test "${ac_cv_objext+set}" = set; then : | |
2013 | $as_echo_n "(cached) " >&6 | |
2014 | else | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | ||
2018 | int | |
2019 | main () | |
2020 | { | |
2021 | ||
2022 | ; | |
2023 | return 0; | |
2024 | } | |
2025 | _ACEOF | |
2026 | rm -f conftest.o conftest.obj | |
2027 | if { { ac_try="$ac_compile" | |
2028 | case "(($ac_try" in | |
2029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2030 | *) ac_try_echo=$ac_try;; | |
2031 | esac | |
2032 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2033 | $as_echo "$ac_try_echo"; } >&5 | |
2034 | (eval "$ac_compile") 2>&5 | |
2035 | ac_status=$? | |
2036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2037 | test $ac_status = 0; }; then : | |
2038 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2039 | test -f "$ac_file" || continue; | |
2040 | case $ac_file in | |
2041 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2042 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2043 | break;; | |
2044 | esac | |
2045 | done | |
2046 | else | |
2047 | $as_echo "$as_me: failed program was:" >&5 | |
2048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2049 | ||
2050 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2051 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2052 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2053 | See \`config.log' for more details." "$LINENO" 5; } | |
2054 | fi | |
2055 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2056 | fi | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2058 | $as_echo "$ac_cv_objext" >&6; } | |
2059 | OBJEXT=$ac_cv_objext | |
2060 | ac_objext=$OBJEXT | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
2062 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
2063 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
2064 | $as_echo_n "(cached) " >&6 | |
2065 | else | |
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 | /* end confdefs.h. */ | |
2068 | ||
2069 | int | |
2070 | main () | |
2071 | { | |
2072 | #ifndef __GNUC__ | |
2073 | choke me | |
2074 | #endif | |
2075 | ||
2076 | ; | |
2077 | return 0; | |
2078 | } | |
2079 | _ACEOF | |
2080 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2081 | ac_compiler_gnu=yes | |
2082 | else | |
2083 | ac_compiler_gnu=no | |
2084 | fi | |
2085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2086 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
2087 | ||
2088 | fi | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
2090 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
2091 | if test $ac_compiler_gnu = yes; then | |
2092 | GXX=yes | |
2093 | else | |
2094 | GXX= | |
2095 | fi | |
2096 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
2097 | ac_save_CXXFLAGS=$CXXFLAGS | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
2099 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
2100 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
2101 | $as_echo_n "(cached) " >&6 | |
2102 | else | |
2103 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
2104 | ac_cxx_werror_flag=yes | |
2105 | ac_cv_prog_cxx_g=no | |
2106 | CXXFLAGS="-g" | |
2107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2108 | /* end confdefs.h. */ | |
2109 | ||
2110 | int | |
2111 | main () | |
2112 | { | |
2113 | ||
2114 | ; | |
2115 | return 0; | |
2116 | } | |
2117 | _ACEOF | |
2118 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2119 | ac_cv_prog_cxx_g=yes | |
2120 | else | |
2121 | CXXFLAGS="" | |
2122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2123 | /* end confdefs.h. */ | |
2124 | ||
2125 | int | |
2126 | main () | |
2127 | { | |
2128 | ||
2129 | ; | |
2130 | return 0; | |
2131 | } | |
2132 | _ACEOF | |
2133 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2134 | ||
2135 | else | |
2136 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
2137 | CXXFLAGS="-g" | |
2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2139 | /* end confdefs.h. */ | |
2140 | ||
2141 | int | |
2142 | main () | |
2143 | { | |
2144 | ||
2145 | ; | |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2150 | ac_cv_prog_cxx_g=yes | |
2151 | fi | |
2152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 | fi | |
2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2155 | fi | |
2156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2157 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
2158 | fi | |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
2160 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
2161 | if test "$ac_test_CXXFLAGS" = set; then | |
2162 | CXXFLAGS=$ac_save_CXXFLAGS | |
2163 | elif test $ac_cv_prog_cxx_g = yes; then | |
2164 | if test "$GXX" = yes; then | |
2165 | CXXFLAGS="-g -O2" | |
2166 | else | |
2167 | CXXFLAGS="-g" | |
2168 | fi | |
2169 | else | |
2170 | if test "$GXX" = yes; then | |
2171 | CXXFLAGS="-O2" | |
2172 | else | |
2173 | CXXFLAGS= | |
2174 | fi | |
2175 | fi | |
2176 | ac_ext=c | |
2177 | ac_cpp='$CPP $CPPFLAGS' | |
2178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2181 | ||
2182 | AC_PROG_OBJCXX() |