Blame SOURCES/qt.csh

106311
# Qt initialization script (csh)
106311
106311
# In multilib environments there is a preferred architecture, 64 bit over 32 bit in x86_64,
106311
# 32 bit over 64 bit in ppc64. When a conflict is found between two packages corresponding
106311
# with different arches, the installed file is the one from the preferred arch. This is
106311
# very common for executables in /usr/bin, for example. If the file /usr/bin/foo is found
106311
# in an x86_64 package and in an i386 package, the executable from x86_64 will be installe
106311
106311
if ( $?QTDIR ) then
106311
   exit
106311
endif
106311
106311
switch (`uname -m`)
106311
   case x86_64:
106311
   case ia64:
106311
   case s390x:
106311
      set QTPREFIXES = "/usr/lib64/qt-3.3 /usr/lib/qt-3.3"
106311
      breaksw
106311
   case *:
106311
      set QTPREFIXES = "/usr/lib/qt-3.3 /usr/lib64/qt-3.3"
106311
endsw
106311
106311
foreach QTPREFIX ( $QTPREFIXES )
106311
  test -d "$QTPREFIX" && setenv QTDIR $QTPREFIX && break
106311
end
106311
unset QTPREFIX QTPREFIXES
106311
106311
if ( "${path}" !~ *$QTDIR/bin* ) then
106311
   set path = ( $QTDIR/bin $path )
106311
endif
106311
106311
setenv QTINC $QTDIR/include
106311
setenv QTLIB $QTDIR/lib