aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 4c6eaaf..644500e 100755
--- a/configure
+++ b/configure
@@ -29,6 +29,7 @@ libdir=""
tccdir=""
includedir=""
mandir=""
+infodir=""
sysroot=""
cross_prefix=""
cc="gcc"
@@ -108,6 +109,8 @@ for opt do
;;
--mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
;;
+ --infodir=*) infodir=`echo $opt | cut -d '=' -f 2`
+ ;;
--sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`
;;
--source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
@@ -227,6 +230,7 @@ echo " --bindir=DIR user executables in DIR [EPREFIX/bin]"
echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"
echo " --includedir=DIR C header files in DIR [PREFIX/include]"
echo " --mandir=DIR man documentation in DIR [PREFIX/man]"
+echo " --infodir=DIR info documentation in DIR [PREFIX/info]"
echo " --enable-cross build cross compilers"
echo ""
echo "Advanced options (experts only):"
@@ -275,6 +279,9 @@ fi
if test x"$mandir" = x""; then
mandir="${prefix}/man"
fi
+if test x"$infodir" = x""; then
+infodir="${prefix}/info"
+fi
if test x"$includedir" = x""; then
includedir="${prefix}/include"
fi
@@ -284,6 +291,7 @@ echo "TinyCC directory $tccdir"
echo "Library directory $libdir"
echo "Include directory $includedir"
echo "Manual directory $mandir"
+echo "Info directory $infodir"
echo "Doc directory $docdir"
echo "Target root prefix $sysroot"
echo "Source path $source_path"
@@ -306,6 +314,7 @@ echo "libdir=\$(DESTDIR)$libdir" >> config.mak
echo "ln_libdir=$libdir" >> config.mak
echo "includedir=\$(DESTDIR)$includedir" >> config.mak
echo "mandir=\$(DESTDIR)$mandir" >> config.mak
+echo "infodir=$infodir" >> config.mak
echo "docdir=\$(DESTDIR)$docdir" >> config.mak
echo "#define CONFIG_SYSROOT \"$sysroot\"" >> $TMPH