xref: /unit/auto/echo/build (revision 0)
1*0Sigor@sysoev.ru
2*0Sigor@sysoev.ru# Copyright (C) Igor Sysoev
3*0Sigor@sysoev.ru# Copyright (C) NGINX, Inc.
4*0Sigor@sysoev.ru
5*0Sigor@sysoev.ru
6*0Sigor@sysoev.ru$echo 'building an "echo" program'
7*0Sigor@sysoev.ru
8*0Sigor@sysoev.rurm -f $NXT_BUILD_DIR/echo
9*0Sigor@sysoev.ru
10*0Sigor@sysoev.runxt_echo_test="$CC -o $NXT_BUILD_DIR/echo -O $NXT_CC_OPT
11*0Sigor@sysoev.ru               auto/echo/echo.c $NXT_LD_OPT"
12*0Sigor@sysoev.ru
13*0Sigor@sysoev.runxt_echo_err=`$nxt_echo_test 2>&1`
14*0Sigor@sysoev.ru
15*0Sigor@sysoev.ruif [ ! -x $NXT_BUILD_DIR/echo ]; then
16*0Sigor@sysoev.ru    $echo
17*0Sigor@sysoev.ru    $echo $0: error: cannot build an \"echo\" program:
18*0Sigor@sysoev.ru    $echo
19*0Sigor@sysoev.ru    $echo $nxt_echo_test
20*0Sigor@sysoev.ru    $echo
21*0Sigor@sysoev.ru    $echo $nxt_echo_err
22*0Sigor@sysoev.ru    $echo
23*0Sigor@sysoev.ru    exit 1
24*0Sigor@sysoev.rufi
25*0Sigor@sysoev.ru
26*0Sigor@sysoev.ruecho=$NXT_BUILD_DIR/echo
27