Changeset 12496
- Timestamp:
- Mar 19, 2007, 1:03:48 PM (19 years ago)
- Location:
- trunk/psconfig
- Files:
-
- 2 edited
-
pschecklibs (modified) (4 diffs)
-
psconfig.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psconfig/pschecklibs
r12142 r12496 167 167 set nonomatch 168 168 foreach f ( $needlibs ) 169 foreach g ( $ syslibpath $libdir $libpath )169 foreach g ( $libdir $libpath $syslibpath ) 170 170 if (! -e $g) continue 171 171 set name = $g/lib$f.a … … 184 184 # check for termcap, curses, etc 185 185 foreach f ( ncurses curses termcap ) 186 foreach g ( $ syslibpath $libdir $libpath )186 foreach g ( $libdir $libpath $syslibpath ) 187 187 set name = $g/lib$f.a 188 188 if (-e $name[1]) goto got_curses; … … 207 207 endif 208 208 209 # add the CPATH 210 if ($?CPATH) then 211 set incpath = `echo $CPATH | tr ':' ' '` 212 else 213 set incpath = "" 214 endif 215 209 216 # check for headers 210 217 echo "" … … 213 220 set incdirs = "" 214 221 foreach f ( $needincs ) 215 foreach g ( $ sysincpath $incdir)222 foreach g ( $incdir $incpath $sysincpath ) 216 223 set name = "$g/$f" 217 224 if (-e $name) goto got_inc; -
trunk/psconfig/psconfig.sh
r12150 r12496 97 97 setenv PSVERSION $args[1] 98 98 99 if ($?CPATH == 0) setenv CPATH 99 100 if ($?LD_LIBRARY_PATH == 0) setenv LD_LIBRARY_PATH 100 101 if ($?PKG_CONFIG_PATH == 0) setenv PKG_CONFIG_PATH … … 204 205 endif 205 206 207 # set CPATH, used to find include files 208 set incdir = {$PSCONFDIR}/{$PSCONFIG}/include 209 set newpath = "" 210 set pathlist = `echo $CPATH | tr ':' '\n'` 211 foreach name ($pathlist) 212 echo $name | grep $PSCONFDIR > /dev/null 213 if ($status == 0) continue 214 if ($newpath == "") then 215 set newpath = {$name}: 216 else 217 set newpath = {$newpath}{$name}: 218 endif 219 end 220 if ("$PSCONFIG" == "none") then 221 if ("$newpath" == "") then 222 unsetenv CPATH 223 else 224 setenv CPATH {$newpath} 225 endif 226 else 227 if ("$newpath" == "") then 228 setenv CPATH {$incdir}: 229 else 230 setenv CPATH {$incdir}:{$newpath} 231 endif 232 endif 233 234 # set LIBRARY_PATH and LD_LIBRARY_PATH, used to find libraries 206 235 set libdir = {$PSCONFDIR}/{$PSCONFIG}/lib 207 236 set newpath = "" … … 219 248 if ("$newpath" == "") then 220 249 unsetenv LD_LIBRARY_PATH 250 unsetenv LIBRARY_PATH 221 251 else 222 252 setenv LD_LIBRARY_PATH {$newpath} 253 setenv LIBRARY_PATH {$newpath} 223 254 endif 224 255 else 225 256 if ("$newpath" == "") then 226 257 setenv LD_LIBRARY_PATH {$libdir}: 258 setenv LIBRARY_PATH {$libdir}: 227 259 else 228 260 setenv LD_LIBRARY_PATH {$libdir}:{$newpath} 261 setenv LIBRARY_PATH {$libdir}:{$newpath} 229 262 endif 230 263 endif … … 291 324 alias psperlbuild perl Build.PL 292 325 else 293 alias psconfigure configure --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir -- includedir={$PSCONFDIR}/{$PSCONFIG}/include --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share --mandir={$PSCONFDIR}/man294 alias psautogen autogen.sh --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir={$PSCONFDIR}/{$PSCONFIG}/include--sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share326 alias psconfigure configure --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir=$incdir --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share 327 alias psautogen autogen.sh --prefix={$PSCONFDIR}/{$PSCONFIG} --bindir=$bindir --libdir=$libdir --mandir=$mandir --includedir=$incdir --sysconfdir={$PSCONFDIR}/{$PSCONFIG}/etc --datadir={$PSCONFDIR}/share 295 328 alias psperlbuild perl Build.PL --prefix {$PSCONFDIR}/{$PSCONFIG} --install_path script=$bindir --install_path arch=$bindir --install_path bin=$bindir --install_path lib=$libdir --install_path bindoc={$PSCONFDIR}/man/man1 --install_path libdoc={$PSCONFDIR}/man/man3 296 329 setenv ACLOCAL_FLAGS "-I $PSCONFDIR/share/aclocal"
Note:
See TracChangeset
for help on using the changeset viewer.
