1 # This file is a shell script that supplies the information necessary
2 # to tailor a template configure script into the configure script
3 # appropriate for this directory. For more information, check any
4 # existing configure script.
13 . ${srcdir}/../bfd/configure.host
16 if [ -f ${srcdir}/../bfd/config/${my_host}.mh ] ; then
17 host_makefile_frag=../bfd/config/${my_host}.mh
22 # Canonicalize the secondary target names.
23 if [ -n "$with_targets" ]; then
24 for targ in `echo $with_targets | sed 's/,/ /g'`
26 result=`$configsub $targ 2>/dev/null`
27 if [ -n "$result" ]; then
28 canon_targets="$canon_targets $result"
30 # Allow targets that config.sub doesn't recognize, like "all".
31 canon_targets="$canon_targets $targ"
35 # If our target is rs6000 _and nothing else_ then we build only nm!
37 rs6000-*-lynx*) target_makefile_frag=config/rslynx ;;
45 for targ in $target $canon_targets
47 bfd_target=`$srcdir/../bfd/config.bfd $targ`
49 if [ "x$bfd_target" = "xall" ]; then
55 *-*-netware*) build_nlmconv=true ;;
59 *-*-hms*) build_srconv=true ;;
64 # We don't do any links based on the target system, just makefile config.
68 rm -f Makefile.tmp Makefile.2
69 mv Makefile Makefile.tmp
71 if [ "x${build_nlmconv}" = "xtrue" ]; then
72 echo 'BUILD_NLMCONV = $(NLMCONV_PROG)' >> Makefile.2
75 if [ "x${build_srconv}" = "xtrue" ]; then
76 echo 'BUILD_SRCONV = $(SRCONV_PROG)' >> Makefile.2
79 if [ "x`$srcdir/../bfd/config.bfd $target _`" = "xyes" ]; then
84 echo "UNDERSCORE = ${underscore}" >> Makefile.2
86 cat Makefile.tmp >> Makefile.2
88 mv Makefile.2 Makefile