# Additional editing of Makefiles /^".*ac_file_inputs.*tmp\/out$/ a\ cat > "$tmp/subs-3.sed" << eof_djgpp\ # DJGPP specific Makefile changes.\ /^aliaspath * *=/s,:,";",g\ /TEXINPUTS=/s,:,";",g\ /PATH=/s,:,";",g\ s,\\.deps,_deps,g\ s,\\.libs,_libs,g\ s,\\.new\\.,_new.,g\ s,\\.old\\.,_old.,g\ s,\\.tab\\.,_tab.,g\ s,Makefile\\.am\\.in,Makefile.am-in,g\ s,Makefile\\.in\\.in,Makefile.in-in,g\ /^\\.y\\.c:/,/^$/ {\ /\\\$(YACCCOMPILE)/ {\ a\\\\\ -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\ -@test -f y.tab.h && mv -f y.tab.h y_tab.h\ }\ }\ /^lib_LTLIBRARIES =/s/fftw3/fftw/\ /^libfftw3.*\\.la:/s/fftw3/fftw/\ /\\$(top_builddir)\\/libfftw3/s/fftw3/fftw/\ s/fftw-wisdom-to-conf\\.1/fft-wisdom-to-conf.1/g\ /html:/,/^$/ {\ s/--html/--no-split &/\ s/^html/fftw.&/\ s/-o html/-o fftw.html/\ }\ eof_djgpp\ sed -f "\$tmp/subs-3.sed" \$tmp/out > \$tmp/out.djgpp\ mv -f \$tmp/out.djgpp \$tmp/out # We always use _deps and _libs instead of .deps and .libs, because # the latter is an invalid name on 8+3 MS-DOS filesystem. This makes # the generated Makefiles good for every DJGPP installation, not only # the one where the package was configured (which could happen to be # a Windows box, where leading dots in file names are allowed). /^rmdir[ ]*\.tst/ i\ am__leading_dot=_ # Replace (command) > /dev/null with `command > /dev/null`, since # parenthesized commands always return zero status in the ported Bash, # even if the named command doesn't exist /if ([^|;`]*null/{ s,(,`, s,),, /null[ ]*2>&1/ s,2>&1,&`, /null.*null/ s,null.*null,&`, /null.*null/ !{ /null[ ]*2>&1/ !s,null,&`, } } # DOS-style absolute file names should be supported as well /\*) top_srcdir=/s,/\*,[\\\\/]* | ?:[\\\\/]*, # The following two items are changes needed for configuring # and compiling across partitions. # 1) The given srcdir value is always translated from the # "x:" syntax into "/dev/x" syntax while we run configure. /^[ ]*-srcdir=\*.*$/ a\ ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` /set X `ls -Lt \$srcdir/ i\ if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ fi # Autoconf 2.52e generated configure scripts # write absolute paths into Makefiles making # them useless for DJGPP installations for which # the package has not been configured for. /MISSING=/,/^$/ { /^fi$/ a\ am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/fftw[-0-3]\\{1,1\\}[-.0-9]*%${top_srcdir}%'` } /^install_sh=/a\ install_sh=`echo "$install_sh" | sed 's%/dev.*/fftw[-0-3]\\{1,1\\}[-.0-9]*%${top_srcdir}%'` # The following makes sure we are not going to remove a directory # which is the cwd on its drive (DOS doesn't allow to remove such # a directory). The trick is to chdir to the root directory on # temp directory's drive before removing $tmp. /^ *trap 'exit_status=\$\?; rm -rf/s%rm -rf%cd $tmp; cd /; &% # AC_CONFIG_LINKS fails if the source and destination are on # different file systems and symlinks don't work. /^ ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||% # Add DJGPP version information. /^[ ]*VERSION=/ s/\([0-9]\.[0-9]\.[0-9]\)/\1 (DJGPP port 2006-10-17 (r1))/ # We need makeinfo to make the html formated docs. /\$am_missing_run[ ]*makeinfo/ s,\$am_missing_run,, # The path to the FORTRAN compiler and libraries # shall contain no absolute path reference so it # will be good for all djgpp installations. /^FLIBS="$ac_cv_f77_libs"$/ i\ ac_djgpp_path=`echo "$DJDIR" | sed 's%\\\\\\%/%g' | tr $as_cr_LETTERS $as_cr_letters`\ ac_cv_f77_libs=`echo "$ac_cv_f77_libs" | sed "s%-L$ac_djgpp_path%-L/dev/env/DJDIR%g"`