シェルスクリプト言語xyzshのソースコード。
修订版 | 16015314635b75755a6e42bebbaf14f517a27583 (tree) |
---|---|
时间 | 2013-01-22 14:37:45 |
作者 | ab25cq <ab25cq@gmai...> |
Commiter | ab25cq |
1.3.3
@@ -1,9 +1,11 @@ | ||
1 | 1 | #! /bin/sh |
2 | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | -# Generated by GNU Autoconf 2.69. | |
3 | +# Generated by GNU Autoconf 2.68. | |
4 | 4 | # |
5 | 5 | # |
6 | -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
6 | +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 | +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 | +# Foundation, Inc. | |
7 | 9 | # |
8 | 10 | # |
9 | 11 | # This configure script is free software; the Free Software Foundation |
@@ -132,31 +134,6 @@ export LANGUAGE | ||
132 | 134 | # CDPATH. |
133 | 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 | 136 | |
135 | -# Use a proper internal environment variable to ensure we don't fall | |
136 | - # into an infinite loop, continuously re-executing ourselves. | |
137 | - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | - _as_can_reexec=no; export _as_can_reexec; | |
139 | - # We cannot yet assume a decent shell, so we have to provide a | |
140 | -# neutralization value for shells without unset; and this also | |
141 | -# works around shells that cannot unset nonexistent variables. | |
142 | -# Preserve -v and -x to the replacement shell. | |
143 | -BASH_ENV=/dev/null | |
144 | -ENV=/dev/null | |
145 | -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | -case $- in # (((( | |
147 | - *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | - *v* ) as_opts=-v ;; | |
149 | - *x* ) as_opts=-x ;; | |
150 | - * ) as_opts= ;; | |
151 | -esac | |
152 | -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | -# Admittedly, this is quite paranoid, since all the known shells bail | |
154 | -# out after a failed `exec'. | |
155 | -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | -as_fn_exit 255 | |
157 | - fi | |
158 | - # We don't want this to propagate to other subprocesses. | |
159 | - { _as_can_reexec=; unset _as_can_reexec;} | |
160 | 137 | if test "x$CONFIG_SHELL" = x; then |
161 | 138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 | 139 | emulate sh |
@@ -190,8 +167,7 @@ if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
190 | 167 | else |
191 | 168 | exitcode=1; echo positional parameters were not saved. |
192 | 169 | fi |
193 | -test x\$exitcode = x0 || exit 1 | |
194 | -test -x / || exit 1" | |
170 | +test x\$exitcode = x0 || exit 1" | |
195 | 171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 | 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
@@ -236,25 +212,21 @@ IFS=$as_save_IFS | ||
236 | 212 | |
237 | 213 | |
238 | 214 | if test "x$CONFIG_SHELL" != x; 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 | -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | -exit 255 | |
215 | + # We cannot yet assume a decent shell, so we have to provide a | |
216 | + # neutralization value for shells without unset; and this also | |
217 | + # works around shells that cannot unset nonexistent variables. | |
218 | + # Preserve -v and -x to the replacement shell. | |
219 | + BASH_ENV=/dev/null | |
220 | + ENV=/dev/null | |
221 | + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | + export CONFIG_SHELL | |
223 | + case $- in # (((( | |
224 | + *v*x* | *x*v* ) as_opts=-vx ;; | |
225 | + *v* ) as_opts=-v ;; | |
226 | + *x* ) as_opts=-x ;; | |
227 | + * ) as_opts= ;; | |
228 | + esac | |
229 | + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
258 | 230 | fi |
259 | 231 | |
260 | 232 | if test x$as_have_required = xno; then : |
@@ -356,14 +328,6 @@ $as_echo X"$as_dir" | | ||
356 | 328 | |
357 | 329 | |
358 | 330 | } # as_fn_mkdir_p |
359 | - | |
360 | -# as_fn_executable_p FILE | |
361 | -# ----------------------- | |
362 | -# Test if FILE is an executable regular file. | |
363 | -as_fn_executable_p () | |
364 | -{ | |
365 | - test -f "$1" && test -x "$1" | |
366 | -} # as_fn_executable_p | |
367 | 331 | # as_fn_append VAR VALUE |
368 | 332 | # ---------------------- |
369 | 333 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
@@ -485,10 +449,6 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
485 | 449 | chmod +x "$as_me.lineno" || |
486 | 450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
487 | 451 | |
488 | - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
489 | - # already done that, so ensure we don't try to do so again and fall | |
490 | - # in an infinite loop. This has already happened in practice. | |
491 | - _as_can_reexec=no; export _as_can_reexec | |
492 | 452 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | 453 | # (the dirname of $[0] is not the place where we might find the |
494 | 454 | # original and so on. Autoconf is especially sensitive to this). |
@@ -523,16 +483,16 @@ if (echo >conf$$.file) 2>/dev/null; then | ||
523 | 483 | # ... but there are two gotchas: |
524 | 484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
525 | 485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
526 | - # In both cases, we have to default to `cp -pR'. | |
486 | + # In both cases, we have to default to `cp -p'. | |
527 | 487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
528 | - as_ln_s='cp -pR' | |
488 | + as_ln_s='cp -p' | |
529 | 489 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | 490 | as_ln_s=ln |
531 | 491 | else |
532 | - as_ln_s='cp -pR' | |
492 | + as_ln_s='cp -p' | |
533 | 493 | fi |
534 | 494 | else |
535 | - as_ln_s='cp -pR' | |
495 | + as_ln_s='cp -p' | |
536 | 496 | fi |
537 | 497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | 498 | rmdir conf$$.dir 2>/dev/null |
@@ -544,8 +504,28 @@ else | ||
544 | 504 | as_mkdir_p=false |
545 | 505 | fi |
546 | 506 | |
547 | -as_test_x='test -x' | |
548 | -as_executable_p=as_fn_executable_p | |
507 | +if test -x / >/dev/null 2>&1; then | |
508 | + as_test_x='test -x' | |
509 | +else | |
510 | + if ls -dL / >/dev/null 2>&1; then | |
511 | + as_ls_L_option=L | |
512 | + else | |
513 | + as_ls_L_option= | |
514 | + fi | |
515 | + as_test_x=' | |
516 | + eval sh -c '\'' | |
517 | + if test -d "$1"; then | |
518 | + test -d "$1/."; | |
519 | + else | |
520 | + case $1 in #( | |
521 | + -*)set "./$1";; | |
522 | + esac; | |
523 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | + ???[sx]*):;;*)false;;esac;fi | |
525 | + '\'' sh | |
526 | + ' | |
527 | +fi | |
528 | +as_executable_p=$as_test_x | |
549 | 529 | |
550 | 530 | # Sed expression to map a string onto a valid CPP name. |
551 | 531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
@@ -1156,6 +1136,8 @@ target=$target_alias | ||
1156 | 1136 | if test "x$host_alias" != x; then |
1157 | 1137 | if test "x$build_alias" = x; then |
1158 | 1138 | cross_compiling=maybe |
1139 | + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1140 | + If a cross compiler is detected then cross compile mode will be used" >&2 | |
1159 | 1141 | elif test "x$build_alias" != "x$host_alias"; then |
1160 | 1142 | cross_compiling=yes |
1161 | 1143 | fi |
@@ -1394,9 +1376,9 @@ test -n "$ac_init_help" && exit $ac_status | ||
1394 | 1376 | if $ac_init_version; then |
1395 | 1377 | cat <<\_ACEOF |
1396 | 1378 | configure |
1397 | -generated by GNU Autoconf 2.69 | |
1379 | +generated by GNU Autoconf 2.68 | |
1398 | 1380 | |
1399 | -Copyright (C) 2012 Free Software Foundation, Inc. | |
1381 | +Copyright (C) 2010 Free Software Foundation, Inc. | |
1400 | 1382 | This configure script is free software; the Free Software Foundation |
1401 | 1383 | gives unlimited permission to copy, distribute and modify it. |
1402 | 1384 | _ACEOF |
@@ -1669,7 +1651,7 @@ $as_echo "$ac_try_echo"; } >&5 | ||
1669 | 1651 | test ! -s conftest.err |
1670 | 1652 | } && test -s conftest$ac_exeext && { |
1671 | 1653 | test "$cross_compiling" = yes || |
1672 | - test -x conftest$ac_exeext | |
1654 | + $as_test_x conftest$ac_exeext | |
1673 | 1655 | }; then : |
1674 | 1656 | ac_retval=0 |
1675 | 1657 | else |
@@ -1692,7 +1674,7 @@ This file contains any messages produced by compilers while | ||
1692 | 1674 | running configure, to aid debugging if configure makes a mistake. |
1693 | 1675 | |
1694 | 1676 | It was created by $as_me, which was |
1695 | -generated by GNU Autoconf 2.69. Invocation command line was | |
1677 | +generated by GNU Autoconf 2.68. Invocation command line was | |
1696 | 1678 | |
1697 | 1679 | $ $0 $@ |
1698 | 1680 |
@@ -1950,7 +1932,7 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1950 | 1932 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1951 | 1933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1952 | 1934 | as_fn_error $? "failed to load site script $ac_site_file |
1953 | -See \`config.log' for more details" "$LINENO" 5; } | |
1935 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
1954 | 1936 | fi |
1955 | 1937 | done |
1956 | 1938 |
@@ -2065,7 +2047,7 @@ do | ||
2065 | 2047 | IFS=$as_save_IFS |
2066 | 2048 | test -z "$as_dir" && as_dir=. |
2067 | 2049 | for ac_exec_ext in '' $ac_executable_extensions; do |
2068 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2050 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2069 | 2051 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2070 | 2052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2071 | 2053 | break 2 |
@@ -2105,7 +2087,7 @@ do | ||
2105 | 2087 | IFS=$as_save_IFS |
2106 | 2088 | test -z "$as_dir" && as_dir=. |
2107 | 2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
2108 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2090 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2109 | 2091 | ac_cv_prog_ac_ct_CC="gcc" |
2110 | 2092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2111 | 2093 | break 2 |
@@ -2158,7 +2140,7 @@ do | ||
2158 | 2140 | IFS=$as_save_IFS |
2159 | 2141 | test -z "$as_dir" && as_dir=. |
2160 | 2142 | for ac_exec_ext in '' $ac_executable_extensions; do |
2161 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2143 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2162 | 2144 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2163 | 2145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2164 | 2146 | break 2 |
@@ -2199,7 +2181,7 @@ do | ||
2199 | 2181 | IFS=$as_save_IFS |
2200 | 2182 | test -z "$as_dir" && as_dir=. |
2201 | 2183 | for ac_exec_ext in '' $ac_executable_extensions; do |
2202 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2184 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2203 | 2185 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2204 | 2186 | ac_prog_rejected=yes |
2205 | 2187 | continue |
@@ -2257,7 +2239,7 @@ do | ||
2257 | 2239 | IFS=$as_save_IFS |
2258 | 2240 | test -z "$as_dir" && as_dir=. |
2259 | 2241 | for ac_exec_ext in '' $ac_executable_extensions; do |
2260 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2242 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2261 | 2243 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2262 | 2244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2263 | 2245 | break 2 |
@@ -2301,7 +2283,7 @@ do | ||
2301 | 2283 | IFS=$as_save_IFS |
2302 | 2284 | test -z "$as_dir" && as_dir=. |
2303 | 2285 | for ac_exec_ext in '' $ac_executable_extensions; do |
2304 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2286 | + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2305 | 2287 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2306 | 2288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2307 | 2289 | break 2 |
@@ -2344,7 +2326,7 @@ fi | ||
2344 | 2326 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2345 | 2327 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2346 | 2328 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2347 | -See \`config.log' for more details" "$LINENO" 5; } | |
2329 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2348 | 2330 | |
2349 | 2331 | # Provide some information about the compiler. |
2350 | 2332 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
@@ -2459,7 +2441,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | ||
2459 | 2441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2460 | 2442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2461 | 2443 | as_fn_error 77 "C compiler cannot create executables |
2462 | -See \`config.log' for more details" "$LINENO" 5; } | |
2444 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2463 | 2445 | else |
2464 | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2465 | 2447 | $as_echo "yes" >&6; } |
@@ -2502,7 +2484,7 @@ else | ||
2502 | 2484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2503 | 2485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2504 | 2486 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2505 | -See \`config.log' for more details" "$LINENO" 5; } | |
2487 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2506 | 2488 | fi |
2507 | 2489 | rm -f conftest conftest$ac_cv_exeext |
2508 | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
@@ -2561,7 +2543,7 @@ $as_echo "$ac_try_echo"; } >&5 | ||
2561 | 2543 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2562 | 2544 | as_fn_error $? "cannot run C compiled programs. |
2563 | 2545 | If you meant to cross compile, use \`--host'. |
2564 | -See \`config.log' for more details" "$LINENO" 5; } | |
2546 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2565 | 2547 | fi |
2566 | 2548 | fi |
2567 | 2549 | fi |
@@ -2613,7 +2595,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 | ||
2613 | 2595 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2614 | 2596 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2615 | 2597 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2616 | -See \`config.log' for more details" "$LINENO" 5; } | |
2598 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
2617 | 2599 | fi |
2618 | 2600 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2619 | 2601 | fi |
@@ -2747,7 +2729,8 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2747 | 2729 | /* end confdefs.h. */ |
2748 | 2730 | #include <stdarg.h> |
2749 | 2731 | #include <stdio.h> |
2750 | -struct stat; | |
2732 | +#include <sys/types.h> | |
2733 | +#include <sys/stat.h> | |
2751 | 2734 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2752 | 2735 | struct buf { int x; }; |
2753 | 2736 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
@@ -2898,7 +2881,7 @@ case $as_dir/ in #(( | ||
2898 | 2881 | # by default. |
2899 | 2882 | for ac_prog in ginstall scoinst install; do |
2900 | 2883 | for ac_exec_ext in '' $ac_executable_extensions; do |
2901 | - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2884 | + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2902 | 2885 | if test $ac_prog = install && |
2903 | 2886 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2904 | 2887 | # AIX install. It has an incompatible calling convention. |
@@ -3049,6 +3032,8 @@ $as_echo_n "checking Operating System... " >&6; } | ||
3049 | 3032 | OBJ="src/gc.o src/stack.o src/string.o src/list.o src/kanji.o src/debug.o src/hash.o src/vector.o src/block.o src/fun.o src/class.o src/completion.o src/xyzsh.o src/parser.o src/run.o src/readline.o src/curses.o src/cmd_base.o src/cmd_obj.o src/cmd_file.o src/cmd_str.o src/cmd_ary.o src/cmd_condition.o src/interface.o src/object.o src/uobject.o src/cmd_num.o src/cmd_curses.o src/fd.o src/nfun.o src/extprog.o" |
3050 | 3033 | |
3051 | 3034 | |
3035 | +CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\""' | |
3036 | + | |
3052 | 3037 | if test `uname -s` = "Darwin"; then |
3053 | 3038 | echo "Darwin" |
3054 | 3039 |
@@ -3063,7 +3048,7 @@ if test `uname -s` = "Darwin"; then | ||
3063 | 3048 | LIBXYZSHASTRIP=-s |
3064 | 3049 | |
3065 | 3050 | |
3066 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
3051 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
3067 | 3052 | elif test `uname -s` = "SunOS"; then |
3068 | 3053 | echo "SunOS" |
3069 | 3054 |
@@ -3078,7 +3063,7 @@ elif test `uname -s` = "SunOS"; then | ||
3078 | 3063 | LIBXYZSHASTRIP=-s |
3079 | 3064 | |
3080 | 3065 | |
3081 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
3066 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
3082 | 3067 | elif test `uname -s` = "FreeBSD"; then |
3083 | 3068 | echo "FreeBSD" |
3084 | 3069 |
@@ -3093,7 +3078,7 @@ elif test `uname -s` = "FreeBSD"; then | ||
3093 | 3078 | LIBXYZSHASTRIP=-s |
3094 | 3079 | |
3095 | 3080 | |
3096 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
3081 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
3097 | 3082 | elif uname -s | grep -q CYGWIN_NT; then |
3098 | 3083 | echo CYGWIN |
3099 | 3084 |
@@ -3108,7 +3093,7 @@ elif uname -s | grep -q CYGWIN_NT; then | ||
3108 | 3093 | LIBXYZSHASTRIP= |
3109 | 3094 | |
3110 | 3095 | |
3111 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib" | |
3096 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib $CFLAGS" | |
3112 | 3097 | STATIC_LINK=1 |
3113 | 3098 | else |
3114 | 3099 | echo "Linux" |
@@ -3124,13 +3109,23 @@ else | ||
3124 | 3109 | LIBXYZSHASTRIP=-s |
3125 | 3110 | |
3126 | 3111 | |
3127 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
3112 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
3128 | 3113 | fi |
3129 | 3114 | |
3130 | 3115 | |
3131 | 3116 | ########################################################################## |
3132 | 3117 | # CFLAGS settings |
3133 | 3118 | ########################################################################## |
3119 | +if test -d /usr/include | |
3120 | +then | |
3121 | + CFLAGS="$CFLAGS -I/usr/include" | |
3122 | +fi | |
3123 | + | |
3124 | +if test -d /usr/lib | |
3125 | +then | |
3126 | + CFLAGS="$CFLAGS -L/usr/lib" | |
3127 | +fi | |
3128 | + | |
3134 | 3129 | if test -d /usr/local/include |
3135 | 3130 | then |
3136 | 3131 | CFLAGS="$CFLAGS -I/usr/local/include" |
@@ -3209,15 +3204,12 @@ fi | ||
3209 | 3204 | |
3210 | 3205 | |
3211 | 3206 | |
3207 | + | |
3212 | 3208 | ########################################################## |
3213 | 3209 | # environmnet variables |
3214 | 3210 | ########################################################## |
3215 | 3211 | CC=gcc |
3216 | 3212 | INSTALL="/usr/bin/install -c" |
3217 | -CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -I./src -Isrc/ -I. -L. -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/local/include -L/usr/local/lib -O3' | |
3218 | -LIBS="-lreadline -lcursesw -lncursesw -lm -lonig -lmigemo" | |
3219 | - | |
3220 | - | |
3221 | 3213 | |
3222 | 3214 | ###################################################################### |
3223 | 3215 | # readline settings (When with static link, must be ordered before ncurses) |
@@ -3351,7 +3343,7 @@ else | ||
3351 | 3343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3352 | 3344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3353 | 3345 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3354 | -See \`config.log' for more details" "$LINENO" 5; } | |
3346 | +See \`config.log' for more details" "$LINENO" 5 ; } | |
3355 | 3347 | fi |
3356 | 3348 | |
3357 | 3349 | ac_ext=c |
@@ -3377,7 +3369,7 @@ do | ||
3377 | 3369 | for ac_prog in grep ggrep; do |
3378 | 3370 | for ac_exec_ext in '' $ac_executable_extensions; do |
3379 | 3371 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3380 | - as_fn_executable_p "$ac_path_GREP" || continue | |
3372 | + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3381 | 3373 | # Check for GNU ac_path_GREP and select it if it is found. |
3382 | 3374 | # Check for GNU $ac_path_GREP |
3383 | 3375 | case `"$ac_path_GREP" --version 2>&1` in |
@@ -3443,7 +3435,7 @@ do | ||
3443 | 3435 | for ac_prog in egrep; do |
3444 | 3436 | for ac_exec_ext in '' $ac_executable_extensions; do |
3445 | 3437 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3446 | - as_fn_executable_p "$ac_path_EGREP" || continue | |
3438 | + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3447 | 3439 | # Check for GNU ac_path_EGREP and select it if it is found. |
3448 | 3440 | # Check for GNU $ac_path_EGREP |
3449 | 3441 | case `"$ac_path_EGREP" --version 2>&1` in |
@@ -3693,6 +3685,7 @@ if test "x$ac_cv_header_ncurses_ncurses_h" = xyes; then : | ||
3693 | 3685 | fi |
3694 | 3686 | |
3695 | 3687 | |
3688 | +echo $CFLAGS | |
3696 | 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcursesw" >&5 |
3697 | 3690 | $as_echo_n "checking for main in -lcursesw... " >&6; } |
3698 | 3691 | if ${ac_cv_lib_cursesw_main+:} false; then : |
@@ -4409,16 +4402,16 @@ if (echo >conf$$.file) 2>/dev/null; then | ||
4409 | 4402 | # ... but there are two gotchas: |
4410 | 4403 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
4411 | 4404 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
4412 | - # In both cases, we have to default to `cp -pR'. | |
4405 | + # In both cases, we have to default to `cp -p'. | |
4413 | 4406 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
4414 | - as_ln_s='cp -pR' | |
4407 | + as_ln_s='cp -p' | |
4415 | 4408 | elif ln conf$$.file conf$$ 2>/dev/null; then |
4416 | 4409 | as_ln_s=ln |
4417 | 4410 | else |
4418 | - as_ln_s='cp -pR' | |
4411 | + as_ln_s='cp -p' | |
4419 | 4412 | fi |
4420 | 4413 | else |
4421 | - as_ln_s='cp -pR' | |
4414 | + as_ln_s='cp -p' | |
4422 | 4415 | fi |
4423 | 4416 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4424 | 4417 | rmdir conf$$.dir 2>/dev/null |
@@ -4478,16 +4471,28 @@ else | ||
4478 | 4471 | as_mkdir_p=false |
4479 | 4472 | fi |
4480 | 4473 | |
4481 | - | |
4482 | -# as_fn_executable_p FILE | |
4483 | -# ----------------------- | |
4484 | -# Test if FILE is an executable regular file. | |
4485 | -as_fn_executable_p () | |
4486 | -{ | |
4487 | - test -f "$1" && test -x "$1" | |
4488 | -} # as_fn_executable_p | |
4489 | -as_test_x='test -x' | |
4490 | -as_executable_p=as_fn_executable_p | |
4474 | +if test -x / >/dev/null 2>&1; then | |
4475 | + as_test_x='test -x' | |
4476 | +else | |
4477 | + if ls -dL / >/dev/null 2>&1; then | |
4478 | + as_ls_L_option=L | |
4479 | + else | |
4480 | + as_ls_L_option= | |
4481 | + fi | |
4482 | + as_test_x=' | |
4483 | + eval sh -c '\'' | |
4484 | + if test -d "$1"; then | |
4485 | + test -d "$1/."; | |
4486 | + else | |
4487 | + case $1 in #( | |
4488 | + -*)set "./$1";; | |
4489 | + esac; | |
4490 | + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
4491 | + ???[sx]*):;;*)false;;esac;fi | |
4492 | + '\'' sh | |
4493 | + ' | |
4494 | +fi | |
4495 | +as_executable_p=$as_test_x | |
4491 | 4496 | |
4492 | 4497 | # Sed expression to map a string onto a valid CPP name. |
4493 | 4498 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
@@ -4509,7 +4514,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
4509 | 4514 | # values after options handling. |
4510 | 4515 | ac_log=" |
4511 | 4516 | This file was extended by $as_me, which was |
4512 | -generated by GNU Autoconf 2.69. Invocation command line was | |
4517 | +generated by GNU Autoconf 2.68. Invocation command line was | |
4513 | 4518 | |
4514 | 4519 | CONFIG_FILES = $CONFIG_FILES |
4515 | 4520 | CONFIG_HEADERS = $CONFIG_HEADERS |
@@ -4571,10 +4576,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
4571 | 4576 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
4572 | 4577 | ac_cs_version="\\ |
4573 | 4578 | config.status |
4574 | -configured by $0, generated by GNU Autoconf 2.69, | |
4579 | +configured by $0, generated by GNU Autoconf 2.68, | |
4575 | 4580 | with options \\"\$ac_cs_config\\" |
4576 | 4581 | |
4577 | -Copyright (C) 2012 Free Software Foundation, Inc. | |
4582 | +Copyright (C) 2010 Free Software Foundation, Inc. | |
4578 | 4583 | This config.status script is free software; the Free Software Foundation |
4579 | 4584 | gives unlimited permission to copy, distribute and modify it." |
4580 | 4585 |
@@ -4663,7 +4668,7 @@ fi | ||
4663 | 4668 | _ACEOF |
4664 | 4669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4665 | 4670 | if \$ac_cs_recheck; then |
4666 | - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4671 | + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4667 | 4672 | shift |
4668 | 4673 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
4669 | 4674 | CONFIG_SHELL='$SHELL' |
@@ -4695,7 +4700,7 @@ do | ||
4695 | 4700 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
4696 | 4701 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
4697 | 4702 | |
4698 | - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4703 | + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
4699 | 4704 | esac |
4700 | 4705 | done |
4701 | 4706 |
@@ -5012,7 +5017,7 @@ do | ||
5012 | 5017 | esac |
5013 | 5018 | case $ac_mode$ac_tag in |
5014 | 5019 | :[FHL]*:*);; |
5015 | - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
5020 | + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | |
5016 | 5021 | :[FH]-) ac_tag=-:-;; |
5017 | 5022 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
5018 | 5023 | esac |
@@ -5040,7 +5045,7 @@ do | ||
5040 | 5045 | [\\/$]*) false;; |
5041 | 5046 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
5042 | 5047 | esac || |
5043 | - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
5048 | + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | |
5044 | 5049 | esac |
5045 | 5050 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
5046 | 5051 | as_fn_append ac_file_inputs " '$ac_f'" |
@@ -5067,7 +5072,7 @@ $as_echo "$as_me: creating $ac_file" >&6;} | ||
5067 | 5072 | |
5068 | 5073 | case $ac_tag in |
5069 | 5074 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5070 | - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5075 | + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5071 | 5076 | esac |
5072 | 5077 | ;; |
5073 | 5078 | esac |
@@ -39,6 +39,8 @@ AC_MSG_CHECKING(Operating System) | ||
39 | 39 | OBJ="src/gc.o src/stack.o src/string.o src/list.o src/kanji.o src/debug.o src/hash.o src/vector.o src/block.o src/fun.o src/class.o src/completion.o src/xyzsh.o src/parser.o src/run.o src/readline.o src/curses.o src/cmd_base.o src/cmd_obj.o src/cmd_file.o src/cmd_str.o src/cmd_ary.o src/cmd_condition.o src/interface.o src/object.o src/uobject.o src/cmd_num.o src/cmd_curses.o src/fd.o src/nfun.o src/extprog.o" |
40 | 40 | AC_SUBST(OBJ) |
41 | 41 | |
42 | +CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\""' | |
43 | + | |
42 | 44 | if test `uname -s` = "Darwin"; then |
43 | 45 | echo "Darwin" |
44 | 46 |
@@ -52,7 +54,7 @@ if test `uname -s` = "Darwin"; then | ||
52 | 54 | LIBXYZSHASTRIP=-s |
53 | 55 | AC_SUBST(LIBXYZSHASTRIP) |
54 | 56 | |
55 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
57 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
56 | 58 | elif test `uname -s` = "SunOS"; then |
57 | 59 | echo "SunOS" |
58 | 60 |
@@ -66,7 +68,7 @@ elif test `uname -s` = "SunOS"; then | ||
66 | 68 | LIBXYZSHASTRIP=-s |
67 | 69 | AC_SUBST(LIBXYZSHASTRIP) |
68 | 70 | |
69 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
71 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
70 | 72 | elif test `uname -s` = "FreeBSD"; then |
71 | 73 | echo "FreeBSD" |
72 | 74 |
@@ -80,7 +82,7 @@ elif test `uname -s` = "FreeBSD"; then | ||
80 | 82 | LIBXYZSHASTRIP=-s |
81 | 83 | AC_SUBST(LIBXYZSHASTRIP) |
82 | 84 | |
83 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
85 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
84 | 86 | elif uname -s | grep -q CYGWIN_NT; then |
85 | 87 | echo CYGWIN |
86 | 88 |
@@ -94,7 +96,7 @@ elif uname -s | grep -q CYGWIN_NT; then | ||
94 | 96 | LIBXYZSHASTRIP= |
95 | 97 | AC_SUBST(LIBXYZSHASTRIP) |
96 | 98 | |
97 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib" | |
99 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib $CFLAGS" | |
98 | 100 | STATIC_LINK=1 |
99 | 101 | else |
100 | 102 | echo "Linux" |
@@ -109,13 +111,23 @@ else | ||
109 | 111 | LIBXYZSHASTRIP=-s |
110 | 112 | AC_SUBST(LIBXYZSHASTRIP) |
111 | 113 | |
112 | - CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC" | |
114 | + CFLAGS="-Isrc/ -I. -L. -I$myprefix/include -L$myprefix/lib -fPIC $CFLAGS" | |
113 | 115 | fi |
114 | 116 | |
115 | 117 | |
116 | 118 | ########################################################################## |
117 | 119 | # CFLAGS settings |
118 | 120 | ########################################################################## |
121 | +if test -d /usr/include | |
122 | +then | |
123 | + CFLAGS="$CFLAGS -I/usr/include" | |
124 | +fi | |
125 | + | |
126 | +if test -d /usr/lib | |
127 | +then | |
128 | + CFLAGS="$CFLAGS -L/usr/lib" | |
129 | +fi | |
130 | + | |
119 | 131 | if test -d /usr/local/include |
120 | 132 | then |
121 | 133 | CFLAGS="$CFLAGS -I/usr/local/include" |
@@ -193,16 +205,13 @@ fi | ||
193 | 205 | AC_SUBST(LIBXYZSHA) |
194 | 206 | AC_SUBST(LIBXYZSHSO1) |
195 | 207 | AC_SUBST(LIBXYZSHSO) |
208 | +AC_SUBST(CFLAGS) | |
196 | 209 | |
197 | 210 | ########################################################## |
198 | 211 | # environmnet variables |
199 | 212 | ########################################################## |
200 | 213 | CC=gcc |
201 | 214 | INSTALL="/usr/bin/install -c" |
202 | -CFLAGS='-DSYSCONFDIR="\"${sysconfdir}/\"" -DDOCDIR="\"${docdir}/\"" -DSYSTEM_MIGEMODIR="\"${SYSTEM_MIGEMODIR}\"" -I./src -Isrc/ -I. -L. -I/usr/local/include -L/usr/local/lib -fPIC -I/usr/local/include -L/usr/local/lib -O3' | |
203 | -LIBS="-lreadline -lcursesw -lncursesw -lm -lonig -lmigemo" | |
204 | - | |
205 | -AC_SUBST(CFLAGS) | |
206 | 215 | |
207 | 216 | ###################################################################### |
208 | 217 | # readline settings (When with static link, must be ordered before ncurses) |
@@ -216,6 +225,7 @@ AC_HAVE_LIBRARY(readline, [ LIBS="$LIBS -lreadline" ], [ exit ]) | ||
216 | 225 | ##################################################################### |
217 | 226 | AC_CHECK_HEADER(ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_H, 1)]) |
218 | 227 | AC_CHECK_HEADER(ncurses/ncurses.h, [NCURSES_OK=1; AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1)]) |
228 | +echo $CFLAGS | |
219 | 229 | AC_HAVE_LIBRARY(cursesw, [ LIBS="$LIBS -lcursesw"; NCURSES_OK2=1 ]) |
220 | 230 | AC_HAVE_LIBRARY(ncursesw, [ LIBS="$LIBS -lncursesw"; NCURSES_OK2=1 ]) |
221 | 231 |