1# Additional editing of Makefiles 2/(echo[ ]*':t/ a\ 3# DJGPP specific Makefile changes.\ 4 /^aliaspath * *=/s,:,";",g;t t\ 5 /TEXINPUTS=/s,:,";",g;t t\ 6 /PATH=/s,:,";",g;t t\ 7 s,\\.deps,_deps,g;t t\ 8 s,\\.libs,_libs,g;t t\ 9 s,\\.new\\.,_new.,g;t t\ 10 s,\\.old\\.,_old.,g;t t\ 11 s,\\.tab\\.,_tab.,g;t t\ 12 /^lispdir * *=/ c\\\ 13lispdir = \$(prefix)/gnu/emacs/site-lisp\ 14 /^docdir * *=/ c\\\ 15docdir = \$(prefix)/gnudocs/libiconv.110\ 16 /(datadir)\\/doc/d\ 17 s,config\\.h\\.in,config.h-in,g;t t\ 18 s,\\.\\([1-9]\\)\\.html,_\\1.html,g;t t\ 19 s,/doc,/gnudocs,g;t t\ 20 s,iconv\\.h\\.in,iconv.h-in,g;t t\ 21 s,libcharset\\.h\\.in,libcharset.h-in,g;t t\ 22 s,localcharset\\.h\\.in,localcharset.h-in,g;t t\ 23 s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ 24 s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ 25 /^install-info-am:/,/^$/ s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\ 26 /^\\.y\\.c:/,/^$/ {\ 27 /\\\$(YACC)/ {\ 28 s,[ ]*&&.*$,,\ 29 a\\\ 30 -mv -f y_tab.c \$*.c\\\ 31 -@test -f y.tab.c && mv -f y.tab.c \$*.c\\\ 32 -@test -f y.tab.h && mv -f y.tab.h y_tab.h\ 33 }\ 34 } 35 36# Rename config.h.in into config.h-in 37/^[ ]*ac_config_headers=/,/^_ACEOF/ { 38 s|config\.h|&:config.h-in|g 39} 40/CONFIG_HEADERS=/ s|config\.h\.in|&:config.h-in|2 41 42 43# Rename iconv.h.in into iconv.h-in 44/^[ ]*ac_config_files=/,/^EOF/ { 45 s|include/iconv\.h|&:include/iconv.h-in| 46 s|po/Makefile\.in|&:po/Makefile.in-in| 47} 48/CONFIG_FILES=/ { 49 s|include/iconv\.h|&:include/iconv\.h-in|2 50 s|po/Makefile\.in|&:po/Makefile.in-in|2 51} 52 53# We always use _deps and _libs instead of .deps and .libs, because 54# the latter is an invalid name on 8+3 MS-DOS filesystem. This makes 55# the generated Makefiles good for every DJGPP installation, not only 56# the one where the package was configured (which could happen to be 57# a Windows box, where leading dots in file names are allowed). 58s,\.deps,_deps,g 59s,\.libs,_libs,g 60/^rmdir[ ]*\.tst/ i\ 61am__leading_dot=_ 62 63# Replace (command) > /dev/null with `command > /dev/null`, since 64# parenthesized commands always return zero status in the ported Bash, 65# even if the named command doesn't exist 66/if ([^|;`]*null/{ 67 s,(,`, 68 s,),, 69 /null[ ]*2>&1/ s,2>&1,&`, 70 /null.*null/ s,null.*null,&`, 71 /null.*null/ !{ 72 /null[ ]*2>&1/ !s,null,&`, 73 } 74} 75 76# DOS-style absolute file names should be supported as well 77/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*, 78/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*, 79/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*, 80 81# Switch the order of the two Sed commands, since DOS path names 82# could include a colon 83/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1, 84 85# Prevent the spliting of conftest.subs. 86# The sed script: conftest.subs is split into 48 or 90 lines long files. 87# This will produce sed scripts called conftest.s1, conftest.s2, etc. 88# that will not work if conftest.subs contains a multi line sed command 89# at line #90. In this case the first part of the sed command will be the 90# last line of conftest.s1 and the rest of the command will be the first lines 91# of conftest.s2. So both script will not work properly. 92# This matches the configure script produced by Autoconf 2.57 93/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $tmp/subs.sed`, 94 95# The following two items are changes needed for configuring 96# and compiling across partitions. 97# 1) The given srcdir value is always translated from the 98# "x:" syntax into "/dev/x" syntax while we run configure. 99/^[ ]*-srcdir=\*.*$/ a\ 100 ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` 101/set X `ls -Lt \$srcdir/ i\ 102 if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ 103 srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ 104 fi 105 106# 2) We need links across partitions, 107# so we will use "cp -pf" instead of "ln". 108/# Make a symlink if possible; otherwise try a hard link./,/EOF/ { 109 s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&, 110} 111 112# Autoconf 2.52e generated configure scripts 113# write absolute paths into Makefiles making 114# them useless for DJGPP installations for which 115# the package has not been configured for. 116/MISSING=/,/^$/ { 117 /^fi$/ a\ 118am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/libiconv-[0-9]\\{1,1\\}[-.0-9]*%${top_srcdir}%'` 119} 120/^install_sh=/a\ 121install_sh=`echo "$install_sh" | sed 's%/dev.*/libiconv-[0-9]\\{1,1\\}[-.0-9]*%${top_srcdir}%'` 122 123# The following makes sure we are not going to remove a directory 124# which is the cwd on its drive (DOS doesn't allow to remove such 125# a directory). The trick is to chdir to the root directory on 126# temp directory's drive before removing $tmp. 127/^[ ]*trap[ ]*'exit_status=\$\?;[ ]*rm[ ]*-rf/ s%rm -rf%cd $tmp; cd /; &% 128 129# AC_CONFIG_LINKS fails if the source and destination are on 130# different file systems and symlinks don't work. 131/^ ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||% 132 133# Add DJGPP version information. 134/^[ ]*VERSION=/ s/\([0-9]\.[0-9]*[-.0-9]*\)/"\1 (DJGPP port 2006-03-21 (r1))"/ 135 136# We need makeinfo to make the html formated docs. 137/\$am_missing_run[ ]*makeinfo/ s,\$am_missing_run,, 138 139# The path to the FORTRAN compiler and libraries 140# shall contain no absolute path reference so it 141# will be good for all djgpp installations. 142/^FLIBS="\$ac_cv_flibs"/ i\ 143ac_djgpp_path=`echo "$DJDIR" | sed 's%\\\\\\%/%g' | tr $as_cr_LETTERS $as_cr_letters`\ 144ac_cv_flibs=`echo "$ac_cv_flibs" | sed "s%-L$ac_djgpp_path%-L/dev/env/DJDIR%g"` 145 146# Let libtool use _libs all the time. 147/objdir=/s,\.libs,_libs, 148 149# DJGPP needs ICONV_CONST defined as "const" 150/if .*am_cv_proto_iconv_arg1/ i\ 151am_cv_proto_iconv_arg1="const" 152 153# DJGPP installs the man pages into ${prefix}/man and not into ${datadir}/man 154/^test .*{datadir}\/man/ d 155