When compiling Scilab with ./configure thirdparty jars are not found because of the restriction -type f in the find command

Reported by Moises TORRES

BUG DESCRIPTION:
----------------
When compiling Scilab the command ./configure fails because it cannot find the file "glugen2-rt.jar" but the file exists in my machine with a symlink pointing from "gluegen2-rt.jar" to "glugen-rt.jar". The option -maxdepth 1 also prevents from searching the path /usr/share/java/jogl2 where the files are located since the given path is /usr/share.

ERROR LOG:
----------

checking gluegen2-rt... no
configure: error: Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package jogamp.common.os.MachineDescriptionRuntime)

HOW TO REPRODUCE THE BUG:
-------------------------


OTHER INFORMATION:
------------------

Command used to find the files:

configure:15656
-    jar_resolved="$(find $DEFAULT_JAR_DIR -maxdepth 1 \( -type f -name 'gluegen2-rt.jar' -or -name 'libgluegen2-rt.jar' -or -name 'libgluegen2-rt-java.jar' -or -name 'gluegen2-rt*.jar' \) 2>/dev/null |tr '\n' ':')."


Where my files are located:

$ ls -l /usr/share/java/jogl2/
total 3676
lrwxrwxrwx 1 root root      14 21 janv. 22:15 gluegen2-rt.jar -> gluegen-rt.jar
-rw-r--r-- 1 root root  345605 21 janv. 22:15 gluegen-rt.jar
lrwxrwxrwx 1 root root      12 21 janv. 22:15 jogl2.jar -> jogl-all.jar
-rw-r--r-- 1 root root 3414448 21 janv. 22:15 jogl-all.jar