"Fossies" - the Fresh Open Source Software Archive

Member "kydpdict-0.9.5/configure.in" (29 Dec 2007, 2014 Bytes) of package /linux/privat/old/kydpdict-0.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 AC_PREREQ(2.57)
    3 AC_INIT(kydpdict, 0.9.5, ytm@elysium.pl)
    4 
    5 AC_PROG_CPP
    6 AC_PROG_CC
    7 AC_PROG_CXX
    8 AC_PROG_CXXCPP
    9 AC_PROG_MAKE_SET
   10 AC_PATH_XTRA
   11 AC_C_BIGENDIAN( AC_SUBST(CXXFLAGS,"$CXXFLAGS -DWORDS_BIGENDIAN") )
   12 
   13 QT_DO_IT_ALL
   14 
   15 if test x"$no_x" = "xyes"; then
   16     AC_SUBST(CXXFLAGS,"$CXXFLAGS -DWITHOUT_X11")
   17     AC_SUBST(HAVE_X11,"no")
   18 else
   19     AC_SUBST(HAVE_X11,"yes")
   20     AC_SUBST(X_LIB,"-lX11")
   21 fi
   22 
   23 if test x"$qt_cv_libraries" = "x"; then
   24     AC_MSG_ERROR([you have to provide both --with-qt-includes and --with-qt-libraries])
   25 fi
   26 
   27 if test -n "$qt_cv_dir"; then
   28     QTDIR=$qt_cv_dir
   29 fi
   30 
   31 # Required Qt version
   32 QTMAJOR=3
   33 QTMIDDLE=1
   34 QTMINOR=0
   35 
   36 aIFS=$IFS
   37 IFS=.
   38 CNT=1
   39 FAULT=0
   40 for NAME in $QT_VERSION; do
   41     case $CNT in
   42 	1)
   43 	    if test 0$NAME -lt $QTMAJOR; then
   44 		FAULT=1
   45 	    fi
   46 	    ;;
   47 	2)
   48 	    if test 0$NAME -lt $QTMIDDLE; then
   49 		FAULT=1
   50 	    fi
   51 	    ;;
   52 	3)
   53 	    if test 0$NAME -lt $QTMINOR; then
   54 		FAULT=1
   55 	    fi
   56 	    ;;
   57     esac
   58     CNT=`expr $CNT + 1`
   59 done
   60 IFS=$aIFS
   61 
   62 if test 0$FAULT -eq 1; then
   63     AC_MSG_ERROR([found Qt $QT_VERSION, Qt >= $QTMAJOR.$QTMIDDLE required])
   64 fi
   65 
   66 AC_ARG_VAR(LUPDATE,[path to Qt lupdate tool])
   67 AC_CHECK_PROG([LUPDATE],[lupdate],[found],[notfound],[$PATH:$QTDIR/bin:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/local/qt/bin])
   68 if test "$LUPDATE" = "notfound"; then
   69     AC_MSG_ERROR([lupdate not found. Please check if it is in your PATH or set LUPDATE variable])
   70 fi
   71 AC_PATH_PROG([LUPDATE],[lupdate],[/usr/bin/lupdate],[$PATH:$QTDIR/bin:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/local/qt/bin])
   72 
   73 AC_ARG_VAR(LRELEASE,[path to Qt lrelease tool])
   74 AC_CHECK_PROG([LRELEASE],[lrelease],[found],[notfound],[$PATH:$QTDIR/bin:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/local/qt/bin])
   75 if test "$LRELEASE" = "notfound"; then
   76     AC_MSG_ERROR([lrelease not found. Please check if it is in your PATH or set LRELEASE variable])
   77 fi
   78 AC_PATH_PROG([LRELEASE],[lrelease],[/usr/bin/lrelease],[$PATH:$QTDIR/bin:/usr/X11R6/bin:/usr/bin:/usr/local/bin:/usr/local/qt/bin])
   79 
   80 AC_OUTPUT([
   81 Makefile
   82 src/Makefile
   83 ])