diff options
Diffstat (limited to 'auto/echo/build')
-rw-r--r-- | auto/echo/build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/auto/echo/build b/auto/echo/build new file mode 100644 index 00000000..10670f74 --- /dev/null +++ b/auto/echo/build @@ -0,0 +1,26 @@ + +# Copyright (C) Igor Sysoev +# Copyright (C) NGINX, Inc. + + +$echo 'building an "echo" program' + +rm -f $NXT_BUILD_DIR/echo + +nxt_echo_test="$CC -o $NXT_BUILD_DIR/echo -O $NXT_CC_OPT + auto/echo/echo.c $NXT_LD_OPT" + +nxt_echo_err=`$nxt_echo_test 2>&1` + +if [ ! -x $NXT_BUILD_DIR/echo ]; then + $echo + $echo $0: error: cannot build an \"echo\" program: + $echo + $echo $nxt_echo_test + $echo + $echo $nxt_echo_err + $echo + exit 1 +fi + +echo=$NXT_BUILD_DIR/echo |