Annotation of GNUtools/libg++/xiberty/configure.in, revision 1.1.1.1

1.1       root        1: # This file is a shell script fragment that supplies the information
                      2: # necessary for a configure script to process the program in
                      3: # this directory.  For more information, look at ../configure.
                      4: 
                      5: configdirs=
                      6: srctrigger=../libiberty/getopt1.c
                      7: srcname="cross -liberty library"
                      8: Makefile_in=../libiberty/Makefile.in
                      9: 
                     10: case "$srcdir" in
                     11:     ".") ;;
                     12:     *) srcdir=${srcdir}/../libiberty ;;
                     13: esac
                     14: 
                     15: # per-host:
                     16: # per-target:
                     17: 
                     18: files="../libiberty/alloca-norm.h"
                     19: links="alloca-conf.h"
                     20: 
                     21: xhost=${target}
                     22: xsrcdir=../libiberty/
                     23: . ${srcdir}/../libiberty/config.table
                     24: if test -n "${frag}" ; then
                     25:   target_makefile_frag=../libiberty/config/${frag}
                     26: fi
                     27: 
                     28: case "$srcdir" in
                     29:     ".")
                     30:        # Make sure we also make links to all the source files
                     31:        source_files=`echo ../libiberty/*.[ch] ../libiberty/functions.def`
                     32:        files="${files} ${source_files}"
                     33:        source_links=`echo "$source_files" | sed -e 's|../libiberty/||g'`
                     34:        links="${links} ${source_links}"
                     35:        ;;
                     36:     *)
                     37:        ;;
                     38: esac
                     39: 
                     40: # post-target:
                     41: 
                     42: cat > Makefile.tem <<'!EOF!'
                     43: CC = `if [ -f ../gcc/gcc ] ; \
                     44:         then echo ../gcc/gcc -B../gcc/ ; \
                     45:         else echo ${target_alias}-gcc ; fi`
                     46: INSTALL_DEST = tooldir
                     47: !EOF!
                     48: 
                     49: # If we are cross-compiling, assume we are building over newlib
                     50: if [ "${host}" != "${target}" ] ; then
                     51:   cat > Makefile.tem2 <<'!EOF!'
                     52: HOST_OFILES = insque.o random.o strdup.o alloca.o
                     53: CONFIG_H = xconfig.h
                     54: NEEDED_LIST = xneeded-list
                     55: 
                     56: xconfig.h:
                     57:        echo "#define NEED_sys_nerr 1" >xconfig.h
                     58:        echo "#define NEED_sys_errlist 1" >>xconfig.h
                     59:        echo "#define NEED_sys_siglist 1" >>xconfig.h
                     60:        echo "#define NEED_psignal 1" >>xconfig.h
                     61: 
                     62: xneeded-list: Makefile
                     63:        echo $(HOST_OFILES) >xneeded-list
                     64: !EOF!
                     65: fi
                     66: sed -e "/^####/  r Makefile.tem" -e "/^####/  r Makefile.tem2" ${Makefile} > Makefile.tem3
                     67: mv Makefile.tem3 ${Makefile}
                     68: rm -f Makefile.tem Makefile.tem2
                     69: 
                     70: if [ "${srcdir}" = "." ] ; then
                     71:   echo "EXTRA_LINKS = ${source_links}" >>Makefile
                     72: fi
                     73: mv Makefile Makefile.tmp
                     74: # Patch 'install' and 'Makefile' rules in Makefile
                     75: # (The latter is only needed when "$srcdir" = ".".)
                     76: sed <Makefile.tmp -e '/INSTALL_DEST =/s/libdir/tooldir/' \
                     77:   -e '/Makefile/s|(srcdir)/Makefile.in|(srcdir)/../libiberty/Makefile.in|' \
                     78:   >Makefile
                     79: rm -f Makefile.tmp

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.