configure
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 26 00:07:17 2010 +0200 (2010-07-26)
changeset 2039 c5a2e4ee7fb8
parent 1969 618a1ffd1ea2
child 2203 ac3e215141a1
permissions -rwxr-xr-x
libc-uclibc: move options
yann@182
     1
#!/bin/sh
yann@182
     2
yann@1311
     3
myname="${0##*/}"
yann@1311
     4
yann@1105
     5
VERSION=$( cat .version )
yann@1105
     6
DATE=$( date +%Y%m%d )
yann@182
     7
yann@183
     8
PREFIX_DEFAULT=/usr/local
yann@182
     9
yann@182
    10
BINDIR_set=
yann@182
    11
LIBDIR_set=
yann@182
    12
DOCDIR_set=
yann@182
    13
MANDIR_set=
yann@285
    14
LOCAL_set=
yann@1311
    15
FORCE=
yann@182
    16
yann@641
    17
do_quit=
yann@614
    18
yann@673
    19
# Simply print the error message, and exit. Obvious, he?
yann@673
    20
do_error() {
yann@1333
    21
    printf "${myname}: ${@}\n"
yann@673
    22
    exit 1
yann@673
    23
}
yann@673
    24
yann@641
    25
# Given an option string and the following argument,
yann@641
    26
# echoes the value of the option.
yann@641
    27
# If --var=val => echoes val and returns 0, meaning second arg was not consumed
yann@641
    28
# If --var val => echoes val and returns non null, meaning second arg was used
yann@182
    29
get_optval(){
yann@182
    30
    case "$1" in
yann@182
    31
        --*=?*)
yann@1333
    32
            printf "${1#*=}"
yann@1105
    33
            return 0
yann@182
    34
            ;;
yann@182
    35
        *)
yann@1333
    36
            printf "${2}"
yann@1105
    37
            return 1
yann@182
    38
            ;;
yann@182
    39
    esac
yann@182
    40
}
yann@182
    41
yann@641
    42
# The set_xxx functions will set the corresponding configuration variable
yann@641
    43
# They return 0 if second arg was not consumed, and non-zero if it was consumed.
yann@182
    44
set_prefix() {
yann@1105
    45
    PREFIX="$( get_optval "$1" "$2" )"
yann@182
    46
}
yann@182
    47
set_bindir() {
yann@376
    48
    BINDIR_set=1
yann@1105
    49
    BINDIR="$( get_optval "$1" "$2" )"
yann@182
    50
}
yann@182
    51
set_libdir() {
yann@376
    52
    LIBDIR_set=1
yann@1105
    53
    LIBDIR="$( get_optval "$1" "$2" )"
yann@182
    54
}
yann@182
    55
set_docdir() {
yann@376
    56
    DOCDIR_set=1
yann@1105
    57
    DOCDIR="$( get_optval "$1" "$2" )"
yann@182
    58
}
yann@182
    59
set_mandir() {
yann@376
    60
    MANDIR_set=1
yann@1105
    61
    MANDIR="$( get_optval "$1" "$2" )"
yann@182
    62
}
yann@1140
    63
set_tool() {
yann@1140
    64
    local var_name="${1%%=*}"
yann@1140
    65
    var_name="${var_name#--with-}"
yann@1140
    66
    eval ${var_name}="\$( get_optval "$1" "$2" )"
yann@614
    67
}
yann@614
    68
yann@1311
    69
# var_list is a list of variables, each one holding a path to a
yann@1311
    70
# tool, either detected by ./configure, or specified by the user.
yann@1311
    71
var_list=""
yann@1311
    72
yann@1311
    73
# This function adds a variable name to the above list of variable names.
yann@1311
    74
# $1: the name of the variable to add to the list
yann@1311
    75
add_to_var_list() {
yann@1311
    76
    var_list="${var_list} ${1}"
yann@1311
    77
}
yann@1311
    78
yann@1311
    79
# A function to test for required tools/headers/libraries
yann@1560
    80
# Return 0 (true) if found, !0 (false) if not found
yann@1560
    81
#
yann@1311
    82
# $*: [prog|inc|lib]=<name[ name...]>
yann@1311
    83
#     the name(s) of tool(s) to test for
yann@1311
    84
#     mandatory
yann@1311
    85
#       eg: prog=bash   prog="curl wget"
yann@1311
    86
# $*: var=<var_name>
yann@1311
    87
#     the name of the variable to test and set
yann@1311
    88
#     optional
yann@1311
    89
#       eg: var=bash    if ${bash} is set and non-null, use that,
yann@1311
    90
#                       else check for bash and set bash=$(which bash)
yann@1311
    91
# $*: ver=<regexp>
yann@1311
    92
#     for each 'prog', test if $(prog --version) matches 'regexp'
yann@1311
    93
#     optional
yann@1311
    94
#       eg: ver='^GNU bash, version [34]\.'
yann@1311
    95
# $*: err=<error_message>
yann@1311
    96
#     the error message to print if tool is missing
yann@1311
    97
#     optional, defaults to: '${prog}: none found'
yann@1311
    98
#       eg: err="'bash' 3.x or above was not found"
yann@1560
    99
check_for() {
yann@1311
   100
    local prog inc lib
yann@1311
   101
    local var ver err
yann@1311
   102
    local val
yann@1311
   103
    local item
yann@1311
   104
    local where
yann@1312
   105
    local status
yann@1311
   106
yann@1311
   107
    for item in "${@}"; do
yann@1311
   108
        case "${item}" in
yann@1311
   109
            prog=*|inc=*|lib=*|var=*|ver=*|err=*)
yann@1311
   110
                eval ${item%%=*}="'${item#*=}'"
yann@1311
   111
                ;;
yann@1311
   112
            *)  do_error "has_or_abort: incorrect parameters: '$@'";;
yann@1311
   113
        esac
yann@1311
   114
    done
yann@1311
   115
yann@1311
   116
    case "${prog}:${inc}:${lib}" in
yann@1311
   117
        ?*::)
yann@1311
   118
            for item in ${prog}; do
yann@1311
   119
                printf "Checking for '${item}'... "
yann@1311
   120
                if [ -n "${var}" ]; then
yann@1311
   121
                    eval val="\${${var}}"
yann@1311
   122
                    if [ -n "${val}" ]; then
yann@1311
   123
                        printf "${val} (cached)\n"
yann@1570
   124
                        add_to_var_list "${var}"
yann@1311
   125
                        return 0
yann@1311
   126
                    fi
yann@1311
   127
                fi
yann@1311
   128
                where="$( which "${item}" 2>/dev/null )"
yann@1311
   129
                if [ -z "${where}" ]; then
yann@1312
   130
                    printf "no\n"
yann@1311
   131
                    continue
yann@1311
   132
                elif [ -n "${ver}" ]; then
yann@1571
   133
                    str=$( LC_ALL=C "${where}" --version 2>&1   \
yann@1571
   134
                           |grep -E "${ver}"                    \
yann@1571
   135
                           |head -n 1
yann@1571
   136
                         )
yann@1311
   137
                    if [ -z "${str}" ]; then
yann@1312
   138
                        printf "no\n"
yann@1311
   139
                        unset where
yann@1311
   140
                        continue
yann@1311
   141
                    fi
yann@1311
   142
                fi
yann@1312
   143
                status="${where}"
yann@1311
   144
                break
yann@1311
   145
            done
yann@1311
   146
            ;;
yann@1311
   147
        :?*:)
yann@1312
   148
            for item in ${inc}; do
yann@1312
   149
                printf "Checking for '${item}'... "
yann@1312
   150
                if printf "#include \"${item}\"" |gcc -x c -c - -o /dev/null >/dev/null 2>&1; then
yann@1312
   151
                    where="${item}"
yann@1312
   152
                    status=yes
yann@1312
   153
                    break;
yann@1312
   154
                fi
yann@1312
   155
                printf "no\n"
yann@1312
   156
            done
yann@1311
   157
            ;;
yann@1311
   158
        ::?*)
yann@1313
   159
            for item in ${lib}; do
yann@1313
   160
                printf "Checking for '${item}'... "
yann@1313
   161
                where="$( gcc -print-file-name="${item}" )"
yann@1313
   162
                if [ "${where}" != "${item}" ]; then
titus@1959
   163
                    where="$( readlink "${where}" )"
yann@1313
   164
                    status=yes
yann@1313
   165
                    break;
yann@1313
   166
                fi
yann@1313
   167
                printf "no\n"
yann@1313
   168
            done
yann@1311
   169
            ;;
yann@1311
   170
    esac
yann@1560
   171
yann@1312
   172
    if [ -z "${status}" ]; then
yann@1312
   173
        printf "\n${err:-${prog}${inc}${lib}: none found}\n\n"
yann@1312
   174
        printf "Either you are missing entirely the needed tool,\n"
yann@1312
   175
        printf "or the version you have is too old.\n"
yann@1312
   176
        if [ -n "${var}" ]; then
yann@1312
   177
            printf "You can give the path to this tool using: --with-${var}=PATH\n"
yann@1312
   178
        fi
yann@1560
   179
        printf "\n"
yann@1560
   180
        return 1
yann@1560
   181
    fi
yann@1560
   182
yann@1560
   183
    printf "${status}"
yann@1560
   184
    if [ -n "${var}" ]; then
yann@1560
   185
        eval ${var}='"'"${where}"'"'
yann@1560
   186
        add_to_var_list "${var}"
yann@1560
   187
    fi
yann@1560
   188
    printf "\n"
yann@1560
   189
}
yann@1560
   190
yann@1560
   191
# This function checks for a tool, and aborts if not found
yann@1560
   192
# See check_for(), above, for how to call has_or_abort
yann@1560
   193
has_or_abort() {
yann@1560
   194
    if ! check_for "$@"; then
yann@1312
   195
        # FORCE can be set in the environment
yann@1312
   196
        [ -z "${FORCE}" ] && do_error "Bailing out..."
yann@1312
   197
        printf "\n"
yann@1312
   198
        printf "<*                                          *>\n"
yann@1312
   199
        printf "<*            FORCE in action:              *>\n"
yann@1312
   200
        printf "<* Continuing despite missing pre-requisite *>\n"
yann@1312
   201
        printf "<*          Prepare for breakage            *>\n"
yann@1312
   202
        printf "<*                                          *>\n"
yann@1312
   203
        printf "\n"
yann@1312
   204
    fi
yann@1311
   205
}
yann@1311
   206
yann@183
   207
do_help() {
yann@183
   208
    cat <<__EOF__
yann@1140
   209
\`configure' configures crosstool-NG-${VERSION} to adapt to many kind of systems.
yann@183
   210
yann@183
   211
USAGE: ./configure [OPTION]...
yann@183
   212
yann@183
   213
Defaults for the options are specified in brackets.
yann@183
   214
yann@183
   215
Configuration:
yann@1105
   216
  -h, --help              display this help and exit
yann@1311
   217
      --force             force configure to continue, even in case
yann@1311
   218
                          some pre-requisites are missing
yann@615
   219
yann@615
   220
Installation directories:
yann@185
   221
  --prefix=PREFIX         install files in PREFIX [${PREFIX_DEFAULT}]
yann@285
   222
  --local                 don't install, and use current directory
yann@183
   223
yann@183
   224
By default, \`make install' will install all the files in
yann@183
   225
\`${PREFIX_DEFAULT}/bin', \`${PREFIX_DEFAULT}/lib' etc.  You can specify
yann@183
   226
an installation prefix other than \`${PREFIX_DEFAULT}' using \`--prefix',
yann@183
   227
for instance \`--prefix=\${HOME}'.
yann@183
   228
yann@183
   229
For better control, use the options below.
yann@183
   230
yann@183
   231
Fine tuning of the installation directories:
yann@683
   232
  --bindir=DIR            user executables [PREFIX/bin]
yann@683
   233
  --libdir=DIR            object code libraries [PREFIX/lib]
yann@683
   234
  --docdir=DIR            info documentation [PREFIX/share/doc]
yann@683
   235
  --mandir=DIR            man documentation [PREFIX/share/man]
yann@614
   236
yann@614
   237
Optional Features:
yann@1140
   238
  --with-install=PATH     Specify the full PATH to GNU install
yann@1311
   239
  --with-make=PATH        Specify the full PATH to GNU make >= 3.80
yann@1140
   240
  --with-grep=PATH        Specify the full PATH to GNU grep
yann@1140
   241
  --with-sed=PATH         Specify the full PATH to GNU sed
yann@1140
   242
  --with-bash=PATH        Specify the full PATH to bash >= 3.0
yann@183
   243
__EOF__
yann@183
   244
}
yann@183
   245
yann@376
   246
#---------------------------------------------------------------------
yann@376
   247
# Set user's options
yann@376
   248
yann@182
   249
while [ $# -ne 0 ]; do
yann@182
   250
    case "$1" in
yann@1297
   251
        --local)    LOCAL_set="y"; shift;;
yann@182
   252
        --prefix*)  set_prefix "$1" "$2" && shift || shift 2;;
yann@182
   253
        --bindir*)  set_bindir "$1" "$2" && shift || shift 2;;
yann@182
   254
        --libdir*)  set_libdir "$1" "$2" && shift || shift 2;;
yann@182
   255
        --docdir*)  set_docdir "$1" "$2" && shift || shift 2;;
yann@182
   256
        --mandir*)  set_mandir "$1" "$2" && shift || shift 2;;
yann@1140
   257
        --with-*)   set_tool   "$1" "$2" && shift || shift 2;;
yann@1311
   258
        --force)    FORCE=1; shift;;
yann@183
   259
        --help|-h)  do_help; exit 0;;
blueness@1739
   260
        # Skip, auto-stuff compatibility
blueness@1739
   261
        --build=*|--host=*|--infodir=*|--datadir=*|--sysconfdir=*|--localstatedir=*) shift;;
blueness@1739
   262
        --build|--host|--infodir|--datadir|--sysconfdir|--localstatedir)             shift 2;;
yann@1333
   263
        *)          printf "Unrecognised option: '${1}'\n"; do_help; exit 1;;
yann@182
   264
    esac
yann@182
   265
done
yann@182
   266
yann@641
   267
# Use defaults
yann@185
   268
[ -z "${PREFIX}" ] && set_prefix "" "${PREFIX_DEFAULT}"
yann@641
   269
yann@641
   270
# Special case when installing locally
yann@1297
   271
if [ "${LOCAL_set}" = "y" ]; then
yann@1105
   272
    set_prefix "" "$( pwd )"
yann@1105
   273
    set_bindir "" "$( pwd )"
yann@1105
   274
    set_libdir "" "$( pwd )"
yann@1105
   275
    set_docdir "" "$( pwd )/docs"
yann@1105
   276
    set_mandir "" "$( pwd )/docs"
yann@285
   277
fi
yann@183
   278
yann@376
   279
#---------------------------------------------------------------------
yann@1140
   280
# Some sanity checks, now
yann@1106
   281
yann@1560
   282
# We check for grep and sed manually, because they are used in check_for()
yann@1140
   283
printf "Checking for 'grep'... "
yann@1140
   284
if [ -n "${grep}" ]; then
yann@1333
   285
    printf "${grep} (cached)\n"
yann@1140
   286
else
yann@1140
   287
    grep="$( which grep 2>/dev/null )"
yann@1187
   288
    if [ -z "${grep}" ]; then
yann@1333
   289
        printf "not found\n"
yann@1187
   290
    else
yann@1333
   291
        printf "${grep}\n"
yann@1187
   292
        printf "Checking whether '${grep}' supports -E... "
yann@1187
   293
        if echo 'foo' |"${grep}" -E 'foo' >/dev/null 2>&1; then
yann@1333
   294
            printf "yes\n"
yann@1187
   295
        else
yann@1333
   296
            printf "no\n"
yann@1187
   297
            grep=
yann@1187
   298
        fi
yann@1187
   299
    fi
yann@1106
   300
fi
yann@1187
   301
if [ -z "${grep}" ]; then
yann@1333
   302
    printf "Either you are missing entirely the needed tool,\n"
yann@1333
   303
    printf "or the version you have is too old.\n"
yann@1333
   304
    printf "You can give the path to this tool using: --with-grep=PATH\n"
yann@1187
   305
    do_error "Bailing out..."
yann@1140
   306
fi
yann@1311
   307
add_to_var_list grep
yann@1140
   308
yann@1140
   309
printf "Checking for 'sed'... "
yann@1140
   310
if [ -n "${sed}" ]; then
yann@1333
   311
    printf "${sed} (cached)\n"
yann@1140
   312
else
yann@1140
   313
    sed="$( which sed 2>/dev/null )"
yann@1187
   314
    if [ -z "${sed}" ]; then
yann@1333
   315
        printf "not found\n"
yann@1187
   316
    else
yann@1333
   317
        printf "${sed}\n"
rpjday@1288
   318
        printf "Checking whether '${sed}' supports -i and -e... "
yann@1187
   319
        touch .ct-ng.sed.test
yann@1187
   320
        if "${sed}" -r -i -e 's/foo/bar/' .ct-ng.sed.test >/dev/null 2>&1; then
yann@1333
   321
            printf "yes\n"
yann@1187
   322
        else
yann@1333
   323
            printf "no\n"
yann@1187
   324
            sed=
yann@1187
   325
        fi
yann@1187
   326
        rm -f .ct-ng.sed.test
yann@1187
   327
    fi
yann@1140
   328
fi
yann@1187
   329
if [ -z "${sed}" ]; then
yann@1333
   330
    printf "Either you are missing entirely the needed tool,\n"
yann@1333
   331
    printf "or the version you have is too old.\n"
yann@1333
   332
    printf "You can give the path to this tool using: --with-sed=PATH\n"
yann@1187
   333
    do_error "Bailing out..."
yann@1140
   334
fi
yann@1311
   335
add_to_var_list sed
yann@1140
   336
yann@1311
   337
# The regular list of tools we can now easily check for
yann@1311
   338
has_or_abort prog=bash                              \
yann@1311
   339
             var=bash                               \
yann@1477
   340
             ver='^GNU bash, version (3\.[1-9]|4)'  \
yann@1477
   341
             err="'bash' 3.1 or above was not found"
yann@1311
   342
has_or_abort prog=cut
yann@1311
   343
has_or_abort prog=install var=install
yann@1311
   344
has_or_abort prog=make                                  \
yann@1311
   345
             var=make                                   \
yann@1311
   346
             ver='^GNU Make (3.[89][[:digit:]]|[4-9])'  \
yann@1311
   347
             err="GNU 'make' 3.80 or above was not found"
yann@1311
   348
has_or_abort prog=gcc
yann@1431
   349
has_or_abort prog="awk gawk" ver='^GNU Awk' err="GNU 'awk' was not found"
yann@1311
   350
has_or_abort prog=bison
yann@1311
   351
has_or_abort prog=flex
yann@1311
   352
has_or_abort prog=makeinfo
yann@1311
   353
has_or_abort prog=automake                                                      \
oron@1432
   354
             ver='\(GNU automake\) (1\.[[:digit:]]{2,}|[2-9][[:digit:]]*\.)'    \
yann@1311
   355
             err="'automake' 1.10 or above was not found"
yann@1311
   356
has_or_abort prog=libtool                                                                           \
titus@1969
   357
             var=libtool                                                                            \
yann@1311
   358
             ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)'   \
yann@1311
   359
             err="'libtool' 1.5.26 or above was not found"
titus@1957
   360
has_or_abort prog=stat
yann@1669
   361
has_or_abort prog="aria2c curl wget"
yann@1347
   362
has_or_abort prog=cvs
yann@1311
   363
has_or_abort prog=patch
yann@1311
   364
has_or_abort prog=tar
yann@1311
   365
has_or_abort prog=gzip
yann@1311
   366
has_or_abort prog=bzip2
yann@1311
   367
has_or_abort prog=lzma
yann@1313
   368
has_or_abort prog=readlink
titus@1962
   369
has_or_abort prog=objcopy var=objcopy
titus@1962
   370
has_or_abort prog=objdump var=objdump
titus@1962
   371
has_or_abort prog=readelf var=readelf
titus@1962
   372
has_or_abort prog=patch var=patch
yann@1311
   373
yann@1312
   374
has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h"    \
yann@1312
   375
             err="'ncurses' headers files were not found"
yann@1313
   376
yann@1332
   377
ncurses_libs="$( for l in ncursesw ncurses curses; do   \
yann@1332
   378
                     for x in so a dylib; do            \
yann@1332
   379
                         printf "lib$l.$x ";            \
yann@1332
   380
                     done;                              \
yann@1332
   381
                 done                                   \
yann@1332
   382
               )"
yann@1332
   383
has_or_abort lib="${ncurses_libs}"                  \
yann@1313
   384
             err="'ncurses' library was not found"
yann@1106
   385
yann@1106
   386
#---------------------------------------------------------------------
yann@1106
   387
# Compute the version string
yann@376
   388
yann@1576
   389
# If this version is n hg clone, try to get the revision number
yann@435
   390
# If we can't get the revision number, use date
yann@1740
   391
printf "Computing version string... "
yann@435
   392
case "${VERSION}" in
Yann@1409
   393
    *+hg|hg)
yann@1740
   394
        REVISION="$( hg id -n 2>/dev/null || true )"
yann@1105
   395
        case "${REVISION}" in
Yann@1409
   396
            "")
yann@1105
   397
                VERSION="${VERSION}_unknown@$( date +%Y%m%d.%H%M%S )";;
yann@1105
   398
            *)
yann@1430
   399
                VERSION="${VERSION}_$( hg id -b )@${REVISION%%+}_$( hg id -i )"
yann@1105
   400
                ;;
yann@1105
   401
        esac
yann@1105
   402
        # Arrange to have no / in the directory name, no need to create an
yann@1105
   403
        # arbitrarily deep directory structure
yann@1333
   404
        VERSION="$( printf "${VERSION}\n" |"${sed}" -r -e 's|/+|_|g;' )"
yann@444
   405
        ;;
yann@435
   406
esac
yann@1740
   407
printf "${VERSION}\n"
yann@435
   408
yann@1106
   409
#---------------------------------------------------------------------
yann@1106
   410
# Compute and check install paths
yann@1106
   411
yann@614
   412
# Now we have the version string, we can build up the paths
yann@554
   413
[ -z "${BINDIR_set}" ] && BINDIR="${PREFIX}/bin"
yann@1660
   414
[ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib"
yann@1660
   415
[ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc"
yann@2026
   416
[ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man"
yann@554
   417
yann@1660
   418
# Install support files in our own sub-dir, so as not to mangle (system)
yann@1660
   419
# files and dirs, but only if not --local
yann@1660
   420
if [ -z "${LOCAL_set}" ]; then
yann@1660
   421
    LIBDIR="${LIBDIR}/ct-ng-${VERSION}"
yann@1660
   422
    DOCDIR="${DOCDIR}/ct-ng-${VERSION}"
yann@1660
   423
fi
yann@1660
   424
yann@1047
   425
# Check that install PATHs are absolute
yann@1047
   426
for p in BIN LIB DOC MAN; do
yann@1105
   427
    var="${p}DIR"
yann@1105
   428
    eval v='"${'"${var}"'}"'
yann@1105
   429
    case "${v}" in
yann@1105
   430
        /*) ;;
yann@1105
   431
        *)  do_error "'${var}' is not an absolute path: '${v}'"
yann@1105
   432
    esac
yann@1047
   433
done
yann@1047
   434
yann@1106
   435
#---------------------------------------------------------------------
yann@1106
   436
# That's all, folks!
yann@614
   437
yann@641
   438
printf "Building up Makefile... "
yann@1140
   439
var_sed="$( for var_name in ${var_list}; do
yann@1140
   440
                eval echo 's,@@${var_name}@@,${'"${var_name}"'},g'
yann@1140
   441
            done 
yann@1140
   442
          )"
yann@1106
   443
"${sed}" -r -e "s,@@BINDIR@@,${BINDIR},g
yann@1106
   444
                s,@@LIBDIR@@,${LIBDIR},g
yann@1106
   445
                s,@@DOCDIR@@,${DOCDIR},g
yann@1106
   446
                s,@@MANDIR@@,${MANDIR},g
yann@1106
   447
                s,@@VERSION@@,${VERSION},g
yann@1106
   448
                s,@@DATE@@,${DATE},g
yann@1140
   449
                ${var_sed}
yann@1106
   450
                s,@@LOCAL@@,${LOCAL_set},g"  Makefile.in >Makefile
yann@673
   451
echo "done"
yann@185
   452
yann@185
   453
cat <<__EOF__
yann@673
   454
yann@197
   455
crosstool-NG configured as follows:
yann@554
   456
  PREFIX='${PREFIX}'
yann@554
   457
  BINDIR='${BINDIR}'
yann@554
   458
  LIBDIR='${LIBDIR}'
yann@554
   459
  DOCDIR='${DOCDIR}'
yann@554
   460
  MANDIR='${MANDIR}'
yann@1106
   461
yann@1106
   462
Now run:
yann@1106
   463
  make
yann@185
   464
__EOF__
yann@1298
   465
if [ "${LOCAL_set}" != "y" ]; then
yann@1297
   466
    printf "  make install\n"
yann@1297
   467
fi