Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:12:41

0001 #! /bin/sh
0002 
0003 # testexternals - temporary wrapper script for .libs/testexternals
0004 # Generated by libtool (GNU libtool) 2.4.2
0005 #
0006 # The testexternals program cannot be directly executed until all the libtool
0007 # libraries that it depends on are installed.
0008 #
0009 # This wrapper script should never be moved out of the build directory.
0010 # If it is, it will not operate correctly.
0011 
0012 # Sed substitution that helps us do robust quoting.  It backslashifies
0013 # metacharacters that are still active within double-quoted strings.
0014 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
0015 
0016 # Be Bourne compatible
0017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
0018   emulate sh
0019   NULLCMD=:
0020   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
0021   # is contrary to our usage.  Disable this feature.
0022   alias -g '${1+"$@"}'='"$@"'
0023   setopt NO_GLOB_SUBST
0024 else
0025   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
0026 fi
0027 BIN_SH=xpg4; export BIN_SH # for Tru64
0028 DUALCASE=1; export DUALCASE # for MKS sh
0029 
0030 # The HP-UX ksh and POSIX shell print the target directory to stdout
0031 # if CDPATH is set.
0032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
0033 
0034 relink_command=""
0035 
0036 # This environment variable determines our operation mode.
0037 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
0038   # install mode needs the following variables:
0039   generated_by_libtool_version='2.4.2'
0040   notinst_deplibs=' libDirectPhoton.la'
0041 else
0042   # When we are sourced in execute mode, $file and $ECHO are already set.
0043   if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
0044     file="$0"
0045 
0046 # A function that is used when there is no print builtin or printf.
0047 func_fallback_echo ()
0048 {
0049   eval 'cat <<_LTECHO_EOF
0050 $1
0051 _LTECHO_EOF'
0052 }
0053     ECHO="printf %s\\n"
0054   fi
0055 
0056 # Very basic option parsing. These options are (a) specific to
0057 # the libtool wrapper, (b) are identical between the wrapper
0058 # /script/ and the wrapper /executable/ which is used only on
0059 # windows platforms, and (c) all begin with the string --lt-
0060 # (application programs are unlikely to have options which match
0061 # this pattern).
0062 #
0063 # There are only two supported options: --lt-debug and
0064 # --lt-dump-script. There is, deliberately, no --lt-help.
0065 #
0066 # The first argument to this parsing function should be the
0067 # script's ./libtool value, followed by no.
0068 lt_option_debug=
0069 func_parse_lt_options ()
0070 {
0071   lt_script_arg0=$0
0072   shift
0073   for lt_opt
0074   do
0075     case "$lt_opt" in
0076     --lt-debug) lt_option_debug=1 ;;
0077     --lt-dump-script)
0078         lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'`
0079         test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
0080         lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'`
0081         cat "$lt_dump_D/$lt_dump_F"
0082         exit 0
0083       ;;
0084     --lt-*)
0085         $ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
0086         exit 1
0087       ;;
0088     esac
0089   done
0090 
0091   # Print the debug banner immediately:
0092   if test -n "$lt_option_debug"; then
0093     echo "testexternals:testexternals:${LINENO}: libtool wrapper (GNU libtool) 2.4.2" 1>&2
0094   fi
0095 }
0096 
0097 # Used when --lt-debug. Prints its arguments to stdout
0098 # (redirection is the responsibility of the caller)
0099 func_lt_dump_args ()
0100 {
0101   lt_dump_args_N=1;
0102   for lt_arg
0103   do
0104     $ECHO "testexternals:testexternals:${LINENO}: newargv[$lt_dump_args_N]: $lt_arg"
0105     lt_dump_args_N=`expr $lt_dump_args_N + 1`
0106   done
0107 }
0108 
0109 # Core function for launching the target application
0110 func_exec_program_core ()
0111 {
0112 
0113       if test -n "$lt_option_debug"; then
0114         $ECHO "testexternals:testexternals:${LINENO}: newargv[0]: $progdir/$program" 1>&2
0115         func_lt_dump_args ${1+"$@"} 1>&2
0116       fi
0117       exec "$progdir/$program" ${1+"$@"}
0118 
0119       $ECHO "$0: cannot exec $program $*" 1>&2
0120       exit 1
0121 }
0122 
0123 # A function to encapsulate launching the target application
0124 # Strips options in the --lt-* namespace from $@ and
0125 # launches target application with the remaining arguments.
0126 func_exec_program ()
0127 {
0128   case " $* " in
0129   *\ --lt-*)
0130     for lt_wr_arg
0131     do
0132       case $lt_wr_arg in
0133       --lt-*) ;;
0134       *) set x "$@" "$lt_wr_arg"; shift;;
0135       esac
0136       shift
0137     done ;;
0138   esac
0139   func_exec_program_core ${1+"$@"}
0140 }
0141 
0142   # Parse options
0143   func_parse_lt_options "$0" ${1+"$@"}
0144 
0145   # Find the directory that this script lives in.
0146   thisdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'`
0147   test "x$thisdir" = "x$file" && thisdir=.
0148 
0149   # Follow symbolic links until we get to the real thisdir.
0150   file=`ls -ld "$file" | /usr/bin/sed -n 's/.*-> //p'`
0151   while test -n "$file"; do
0152     destdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'`
0153 
0154     # If there was a directory component, then change thisdir.
0155     if test "x$destdir" != "x$file"; then
0156       case "$destdir" in
0157       [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
0158       *) thisdir="$thisdir/$destdir" ;;
0159       esac
0160     fi
0161 
0162     file=`$ECHO "$file" | /usr/bin/sed 's%^.*/%%'`
0163     file=`ls -ld "$thisdir/$file" | /usr/bin/sed -n 's/.*-> //p'`
0164   done
0165 
0166   # Usually 'no', except on cygwin/mingw when embedded into
0167   # the cwrapper.
0168   WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
0169   if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
0170     # special case for '.'
0171     if test "$thisdir" = "."; then
0172       thisdir=`pwd`
0173     fi
0174     # remove .libs from thisdir
0175     case "$thisdir" in
0176     *[\\/].libs ) thisdir=`$ECHO "$thisdir" | /usr/bin/sed 's%[\\/][^\\/]*$%%'` ;;
0177     .libs )   thisdir=. ;;
0178     esac
0179   fi
0180 
0181   # Try to get the absolute directory name.
0182   absdir=`cd "$thisdir" && pwd`
0183   test -n "$absdir" && thisdir="$absdir"
0184 
0185   program='testexternals'
0186   progdir="$thisdir/.libs"
0187 
0188 
0189   if test -f "$progdir/$program"; then
0190     # Add our own library path to LD_LIBRARY_PATH
0191     LD_LIBRARY_PATH="/sphenix/u/weihuma/analysis/EMCal-analysis/DirectPhoton/.libs:$LD_LIBRARY_PATH"
0192 
0193     # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
0194     # The second colon is a workaround for a bug in BeOS R4 sed
0195     LD_LIBRARY_PATH=`$ECHO "$LD_LIBRARY_PATH" | /usr/bin/sed 's/::*$//'`
0196 
0197     export LD_LIBRARY_PATH
0198 
0199     if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
0200       # Run the actual program with our arguments.
0201       func_exec_program ${1+"$@"}
0202     fi
0203   else
0204     # The program doesn't exist.
0205     $ECHO "$0: error: \`$progdir/$program' does not exist" 1>&2
0206     $ECHO "This script is just a wrapper for $program." 1>&2
0207     $ECHO "See the libtool documentation for more information." 1>&2
0208     exit 1
0209   fi
0210 fi